Strange issue with SPI read as Master in ATSAMD10

Discussions around product based on ARM Cortex M0+ core.

Moderator: nferre

Posts: 12
Joined: Sat Mar 28, 2015 6:49 am

Strange issue with SPI read as Master in ATSAMD10

Fri Oct 14, 2016 7:45 pm


I'm using the ATSAMD10 microcontroller and I'm experiencing a strange issue with the SPI as a master.
The mcu interfaces a radio module via SPI and while it seems communications go well during initialization, at some point the SPI read function starts returning all 0xFF even when the radio module is actually returning a different value (I can check this through a logic analyzer).
Once the SPI reads 0xFF, all subsequent reads all return 0xFF as well. From this point, obviously the program is not longer working properly.
I'm very surprised the SPI data register reads 0xFF because I see the values returning by the SPI slave. I tried to check OVF bit but it's in 0. I don't see any error in the SPI other than always returning 0xFF all the time it's read, until reset occurs.

Does this sound familiar to anyone?
I would appreciate any feedback.


Return to “SAM D20 Cortex-M0+ MCU”

Who is online

Users browsing this forum: No registered users and 1 guest