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

S120 on Dongle (PCA1000)

I'm trying to write a central BLE with the dongle(PCA1000) using s120.
I programmed s120 sd ver 1.0 the same way as the s110 with the nrFGO ver 1.17. However i keep getting error during program execution. I'm not calling sd calls yet in my app.
It works when I load s110 in. When I load s120 the program counter keeps jumping to 0xFFFFFe, which is way out of range. I am using the gcc_nrf51_s120_xaa.ld for the linker script in Eclipse.

Am I missing a step that is different with s120 versus s110?

  • Hi Jon

    My guess is that FLASH and/or RAM settings are not correct.

    In the ble_app_hrs gcc project you will see that ble_app_hrs.Makefile has by default

    USE_SOFTDEVICE := S110
    

    setting this to

    USE_SOFTDEVICE := S120
    

    will not work because there is no S120 option defined in the Makefile.common file. So in order to make this work and actually use the gcc_nrf51_s120_xxaa.ld setting, you have to define a S120 option in the Makefile.common file.

    Another think that I see is that in the S120 KEIL examples in the SDK define FLASH length is 0x27000, but not 0x28000 as defined in the gcc_nrf51_s120_xxaa.ld file. So, try to change the FLASH length to 0x27000 in the gcc_nrf51_s120_xxaa.ld file to see if that makes any difference

Related