Hi,
I have updated our SDK version from 15.0.0 to 15.3.0 for our custom board based on nrf52832
I wanted to rebuild the bootloader just in case it was needed. So i have opened the solution from examples/dfu/secure_bootloader/pca10040_ble/ses using SeS version 5.42a
But when I built it I got an error message saying
section .uicr_bootloader_start_address VMA [0000000000000ff8,0000000000000ffb] overlaps section .reserved_flash VMA [0000000000000000,0000000000077fff]
I have tried the solution suggested here : https://devzone.nordicsemi.com/f/nordic-q-a/47651/uicr_mbr_params_page-and-uicr_bootloader_start_address-overwrite-the-beginning-of-the-softdevice
By updating the flash placement from :
<MemorySegment name="uicr_bootloader_start_address" start="0x00000FF8" size="0x4"> <ProgramSection alignment="4" keep="Yes" load="Yes" name=".uicr_bootloader_start_address" address_symbol="__start_uicr_bootloader_start_address" end_symbol="__stop_uicr_bootloader_start_address" start = "0x00000FF8" size="0x4" /> </MemorySegment> <MemorySegment name="uicr_mbr_params_page" start="0x00000FFC" size="0x4"> <ProgramSection alignment="4" keep="Yes" load="Yes" name=".uicr_mbr_params_page" address_symbol="__start_uicr_mbr_params_page" end_symbol="__stop_uicr_mbr_params_page" start = "0x00000FFC" size="0x4" /> </MemorySegment>
To this :
<MemorySegment name="uicr_mbr_params_page" start="0x10001018" size="0x4"> <ProgramSection alignment="4" keep="Yes" load="Yes" name=".uicr_mbr_params_page" address_symbol="__start_uicr_mbr_params_page" end_symbol="__stop_uicr_mbr_params_page" start = "0x10001018" size="0x4" /> </MemorySegment> <MemorySegment name="uicr_bootloader_start_address" start="0x10001014" size="0x04"> <ProgramSection alignment="4" keep="Yes" load="Yes" name=".uicr_bootloader_start_address" address_symbol="__start_uicr_bootloader_start_address" end_symbol="__stop_uicr_bootloader_start_address" start = "0x10001014" size="0x04" /> </MemorySegment>
With that changes, the built succeed but I'm not sure the flash placement parameters are good for my config since the original post is for nRF52840 and not for a nRF52832.
Thanks