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

nrF51422 EK "Error - flash download failed - Cortex M0

Hello, I have a problem during first programing PCA10003 blinky_example. I get an error:"Flash Download failed - "Cortex-M0" "

Keil v4.74 SDK v6.0.0

In nRFgo Studio tab "Program SoftDevice" is inactive ...

Please help me, I am frustrated.

Parents
  • Hello,

    As you may know, the blinky example does not use the Softdevice. The softdevice can be programmed into the device when you use the blinky example but then you must be sure to change / start your blinky program address above the softdevice's upper stack address. (Size changes depending on Softdevice used) The blinky program comes with the IROM starting at 0X0. The softdevice starts there also.

    The best thing is to erase the chip using nRFgo Studio, (erase all) and then compile and load the blinky example either thru Keil or nRFgo studio. See if that works for you. Then if it does you can load the softdevice and modify and recompile the blinky example to avoid the softstack and see how that works. For an example starting address review the ones that are used in the S110 examples such as the heart rate strap.

    Jay

Reply
  • Hello,

    As you may know, the blinky example does not use the Softdevice. The softdevice can be programmed into the device when you use the blinky example but then you must be sure to change / start your blinky program address above the softdevice's upper stack address. (Size changes depending on Softdevice used) The blinky program comes with the IROM starting at 0X0. The softdevice starts there also.

    The best thing is to erase the chip using nRFgo Studio, (erase all) and then compile and load the blinky example either thru Keil or nRFgo studio. See if that works for you. Then if it does you can load the softdevice and modify and recompile the blinky example to avoid the softstack and see how that works. For an example starting address review the ones that are used in the S110 examples such as the heart rate strap.

    Jay

Children
No Data
Related