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

Error while flashing nrf51422

Hello,

I want to falsh nrf51422 device. I ma developing software using Eclipse and SDK_7.2.0. The soft device is 130. I have build the project successfully and Hex/elf file is generated.

But when i tried to flash the device it is not flashed proper and got an error as following: ...Target halted (PC = 0xFFFFFFFE).

I am using the jlink debugger for flashing the device.

Should i flash the soft device separately to controller? or there is no need of that? could you please help me to figure it out?

Regards

MAbbas

image description

  • you need to make sure that the softdevice version and your application start address are compatible. Which version of softdevice are you using exactly S!30v???. Looking at the log your application start address seems to be 0x1D000. Make sure you have softdevice version that expects application to start at 0x1D000.

    The latest softdevice S130v2.0.1 have application start address at 0x1B000.

    1. You need to download softdevice here

    2. change the application start address and ram as mentioned in the release notes given in the zip file you download above.

      Flash: 108 kB (0x1B000 bytes). RAM: 4.95 kB (0x13C8 bytes) (minimum required memory - actual requirements are dependent upon the configurationchosen at sd_ble_enable() time).

Related