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

NRF51822 FOTA with GCC

Hello,

I tried firmware over the air update with mbed using the compiled bootloader hex file and it works pretty well.

However, I am back to GCC with softdevice 7.1. I would like to use the same bootloader as the one supplied with mbed.

I was able to add the DFU service in the GCC application and it displays properly. I think I need to modify the linker scripts and maybe some other operation when merging the hex file but I am not sure.

Is there some linker scripts available that I can use to simplify this task, or someone that could help ?

My linker script for normal operation with SoftDevice 7.1 is the following : (chip is _xxaa)

/* Linker script to configure memory regions. */

SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys)

MEMORY
{
  FLASH (rx) : ORIGIN = 0x00016000, LENGTH = 0x2A000 
  RAM (rwx) :  ORIGIN = 0x20002000, LENGTH = 0x2000 
}


INCLUDE "gcc_nrf51_common.ld"

Thank you very much!

Simon

Related