This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

S210 (v4) with SPI Master (SDK 7.1) on nRF51422 xxAA

Hello

I'm trying to get a SPI master onto my S210 programmed nRF51422. I'm using uVision 5 and have all the nordic packs installed and built off of the ant broadcast tx example code. I've got the SPI master example working and the S210 broadcast tx examples working but when I try to combine the two, I cannot initialize the SPI master when I have hooks in place for the S210. I'm not sure what the difference in the configuration between with and without the S210 is (I'm still new to uvision and am not very fluent with it yet) but basically I included the packs and requisite dependencies to the S210 project that allow me to use the SPI Master in the nRF_Drivers pack and I can't initialize the SPI master. What happens is that in the spi_master.c file's "spi_master_open(" routine, the app error hooks in when the device tries to clear out the "EVENTS_READY" value which I can see through the peripheral viewer is already at 0x00000000. The lines before it that configure the pins work fine and I can see that reflected in the peripheral's registers but I'm just stuck as to what to do about getting the SPI to work.

I was reading through the nRF51422's product spec and found the note about the organization of the RAM and noticed that it said that the CODE section shouldn't be combine with the Radio, Crypto or SPI, is this my issue? And if it is, how do I insure that they get placed into separate blocks? I'm assuming that the soft device (AKA Radio?) exist in block 0 f the RAM so I should put the SPI into block 1? Is this a define I do in uvision?

Thank you

Related