As per the steps given to program bootloader to the device i have programed it. But the code is not getting executed i.e advertising nor led initilization is taking place. My linker descriptor file is as follows:-
/* Linker script to configure memory regions. */ SEARCH_DIR(.) GROUP(-lgcc -lc -lnosys)
MEMORY
{
FLASH (rx) : ORIGIN = 0x00016000, LENGTH = 44K
RAM (rwx) : ORIGIN = 0x20002000, LENGTH = 8K
BOOTLOADER_SETTINGS (rwx) : ORIGIN = 0x0003FC00, LENGTH = 1K
} SECTIONS { /* placing my named section at given address: */ .bootloaderSettings 0x0003FC00 : { }
.uicrBootStartAddress 0x10001014 : {
} /* other placements follow here... / } / .bootloaderSettings (NOLOAD): { *(.bootloaderSettings) } > BOOTLOADER_SETTINGS */ INCLUDE "gcc_nrf51_common.ld"
I have changed the flash address from 0x0003C000 to 0x00016000 because after compiling it with gcc it was giving error as: section .bootloaderSettings loaded at [0003fc00,0003ffff] overlaps section .text loaded at [0003c000,00046517]
Are my all sections defined above correct? How do i debug with this issue?