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

USB bootloader with SoftDevice

I need to adjust the Flash and RAM to accommodate bootloader and Softdefice and read the tutorial at the link https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial

However, it doesn't mention about the adjustment for Softdevice, my current project settings are:

linker_section_placement_macros="FLASH_PH_START=0x0;FLASH_PH_SIZE=0x100000;RAM_PH_START=0x20000000;RAM_PH_SIZE=0x40000;FLASH_START=0x27000;FLASH_SIZE=0xd9000;RAM_START=0x20002a38;RAM_SIZE=0x3d5c8"

with Softdevice s140 (s140_nrf52_7.2.0). Do I need to change anything when porting this application from nRF52840DK to nRF52840 Dongle?

  • Hi,

    The SoftDevice already includes the MBR, so SoftDevice projects generally do not need changes to the memory layout. You could adjust the flash size of the project so that you would get an error if the app becomes too large, but it is normally not needed. You should updated the board definition though, as explained in the tutorial in the section "Adapt a BLE example (with SoftDevice) and program it using nRF Connect Programmer". 

Related