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

Error in softdevice s310 programming using keil in nrf51422

Hi, i am using the sru232 module (having nrf51422) in my project. I just want to program the softdevices-s310 using Keil-5 but i am not able to do so, while i am trying the same i am getting error
Erase Failed! Error: Flash Download failed - "Cortex-M0"

plz describe how to fix the issue

Parents
  • Based on the settings in the SDK examples, the following settings should have worked:

    SoftDevice: IROM1: start 0x0, size 0x40000 and IRAM1: start 0x20000000, size 0x8000

    Application: IROM1: start 0x1D000, size 0x23000 and IRAM1: start 0x20002200, size 0x5E00

    Does it not work even when setting those settings, erasing the flash, recompiling the application, downloading application and then downloading SoftDevice?

    Have you previously successfully installed SoftDevices and/or applications on the device?

  • Hi,

    If you do have an nRF51 DK or an nRF52 DK you can use the DK as a SEGGER J-Link programmer for any custom board. All you need to do is to connect SWDIO, SWCLK, GND and VDD of the custom board to the corresponding pins of one of the DEBUG OUT ports (P19 or P20) on the DK. Then you can program as you would normally do for the DK, but now the custom board gets programmed. All that is needed for this to work is that the custom board has the same level of VDD as the DK, for the programmer to detect that the custom board is connected. See the DK user guide and/or hardware files for details (for the nRF51 DK these are found at the bottom of the nRF51 DK download page.)

    Regards, Terje

Reply
  • Hi,

    If you do have an nRF51 DK or an nRF52 DK you can use the DK as a SEGGER J-Link programmer for any custom board. All you need to do is to connect SWDIO, SWCLK, GND and VDD of the custom board to the corresponding pins of one of the DEBUG OUT ports (P19 or P20) on the DK. Then you can program as you would normally do for the DK, but now the custom board gets programmed. All that is needed for this to work is that the custom board has the same level of VDD as the DK, for the programmer to detect that the custom board is connected. See the DK user guide and/or hardware files for details (for the nRF51 DK these are found at the bottom of the nRF51 DK download page.)

    Regards, Terje

Children
No Data
Related