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

Hard fault in SOFTDEVICE_HANDLER_INIT s120

I am trying to run the multilink central gcc example with s120 v2.1 on a nRF51822 CEAAD20 device. Unfortunately, SOFTDEVICE_HANDLER_INIT call causes a hard fault. The linker script is as follows:

MEMORY
{
   FLASH (rx) : ORIGIN = 0x1d000, LENGTH = 0x23000
   RAM (rwx) :  ORIGIN = 0x20002800, LENGTH = 0x1800
}

The strange thing is that the same code runs fine on PCA10028 V1.1.0 with nRF51822 QFACA10 which makes me think that this problem has something to do with the silicon version.

Any input on how to proceed debugging will be highly appreciated. Thanks!

  • Hi,

    Are you sure the IRAM IROM settings are correct with regard to your SoftDevice version and chip version?

    See the bottom of this blogpost for some common settings.

  • Hello Øyvind, I think the settings are correct, but the code still can not pass the SOFTDEVICE_HANDLER_INIT call. Any other suggestions? Regards, GT