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

SPI example programming Error

Hello All,

I've got two Rigado development boards that I'm programming with KEIL uvision 5. I've tried a few examples, for example: blinky, which program and work fine. Now I'm trying out the SPI Master and Slave Examples and I'm getting the error: "Error: Flash Download failed - "Cortex-M4"" after which the programming is aborted. Just like link text.

I've noticed that this Example, unlike the blinky example, doesn't use the Softdevice for BLE. I'm familier with using Keil, so I noticed that the IROM1 and IRAM1 where different from the Blinky example. Since the Softdevice isn't used by the SPI example I erased the nRF52832 compleetly, removing the Softdevice. Programming now succeeded and I saw two red LED's blinking, so I though it was succesfull.

However, when I connected both the slave and Master SPI busses, nothing happend on the serial port as I expected (not sure what the output of the slave example should be). I've checked with an oscilloscoop on all pins, but except for the LEDs there's no SPI, serial or other output on any pin. The two LEDs each blink twice while the other LED stays on and then the other LED will blink after a second of waiting.

So I guess my "Fix" to the programming error is incorrect. It's probably something simple, but I can't think of anything other than that I need to softdevice programmed in the nRF52832 somehow.

I would appreciate if someone could help.

Related