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

Linker file for Open bootloader combining BLE and USB

SDK version: nRF5_SDK_15.0.0_a53641a

Softdevice version: s140nrf52611

HW: Custom

I am using the example for open bootloader  (nRF5_SDK_15.3.0_59ac345\examples\dfu\open_bootloader\pca10056_usb) as starting point. I am trying to create a combined open bootloader that uses BLE and USB transport options. I am trying to understand the changes and updates that I need to make to linker file, specifically to the  Flash and RAM addresses. My understanding is that I need to change the flash and RAM origin and length now that the soft device will be present for the combined BLE and USB. Please guide me regarding what I need to change the following values for this in the .ld file. 

MEMORY
{
FLASH (rx) : ORIGIN = 0xe0000, LENGTH = 0x1e000
RAM (rwx) : ORIGIN = 0x20000008, LENGTH = 0x3fff8
uicr_bootloader_start_address (r) : ORIGIN = 0x00000FF8, LENGTH = 0x4
bootloader_settings_page (r) : ORIGIN = 0x000FF000, LENGTH = 0x1000
uicr_mbr_params_page (r) : ORIGIN = 0x00000FFC, LENGTH = 0x4
mbr_params_page (r) : ORIGIN = 0x000FE000, LENGTH = 0x1000
}

Related