- Wed Jul 08, 2020 5:07 pm
#216935
I've been using the Arduino standard SPI interface for a while now. There are 6 total SPI units on a Redboard though. A new project is using SPI2/IOM2. The strange part is that when I perform a write to SPI2, I don't get any activity on IOM2 SCK or MOSI. I see my test program assert CS, then there is a blank spot where my data should be, and then CS gets deasserted. I do see the time it takes to perform the transfer, but nothing appears on SCK2 or MOSI2. I did an SPI2.begin(), and I am calling SPI2.transferOut() to send my data.
I must be missing something obvious here. My interpretation of the definition of Arduino SPI2 is that it uses the Apollo3 IOM2. This means that it would drive its clock on SCK2 (Redboard silkscreen D6, corresponding to Apollo3 pin 27). It would drive the data out on MOSI2 (Redboard silkscreen D7, corresponding to Apollo3 pin 28). I just see SCK2 and MOSI2 sit there at '0'. Any ideas?
I must be missing something obvious here. My interpretation of the definition of Arduino SPI2 is that it uses the Apollo3 IOM2. This means that it would drive its clock on SCK2 (Redboard silkscreen D6, corresponding to Apollo3 pin 27). It would drive the data out on MOSI2 (Redboard silkscreen D7, corresponding to Apollo3 pin 28). I just see SCK2 and MOSI2 sit there at '0'. Any ideas?