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

PCA10040e and s113 bootloader

Hello I am trying to add OTA update functionality to my device which is running the nrf52810 micro with the s113 softdevice. Currently I am trying to convert the PCA10040e/s112 bootloader example to the s113 softdevice however I am running into the device being completely unresponsive after flashing it. Note: I am just flashing the bootloader hex and the softdevice hex.

I changed all the headers in the armgcc/makefile and tried different combinations of RAM/FLASH placement based on the other boot loader examples however I wasn't able to get the boot loader to successfully start advertising. I suspect the culprit is the flash/ram placements in the .ld file however I don't know where to find the correct values to place! If anyone can tell me what I should be doing to get this working, I would appreciate it!

Here is my .ld file,(I cant seem to upload the makefile, this editor isn't accepting it for some reason).

secure_bootloader_gcc_nrf52.ld

Parents
  • Hi,

    The s113 uses more RAM than the s112 with the same configuration, so it's likely the RAM settings. The debug log should inform you if they need to be changed, and in that case, what values to use. If you don't have logging enabled you can step through the nrf_sdh_ble_enable() function with a debugger. 

    I tried to repeat this with the debug bootloader in SDK 16.0.0 and ended up with the following RAM settings:  "RAM (rwx) :  ORIGIN = 0x20002608, LENGTH = 0x39f8". 

    pca10040e_s113_ble_debug.zip

Reply
  • Hi,

    The s113 uses more RAM than the s112 with the same configuration, so it's likely the RAM settings. The debug log should inform you if they need to be changed, and in that case, what values to use. If you don't have logging enabled you can step through the nrf_sdh_ble_enable() function with a debugger. 

    I tried to repeat this with the debug bootloader in SDK 16.0.0 and ended up with the following RAM settings:  "RAM (rwx) :  ORIGIN = 0x20002608, LENGTH = 0x39f8". 

    pca10040e_s113_ble_debug.zip

Children
No Data
Related