Hello,
Information:
SEGGER Embedded studio Studio v412
Windows 10
nRF52832 on a development board.
We are attempting to merge an application with a bootloader.
First we extract the bootloader setting with:
nrfutil.exe settings generate --family NRF52 --application "Output/Release/Exe/application.hex" --application-version 0 --bootloader-version 0 --bl-settings-version 1 bootloader_setting.hex
This does generate the expected file.
Second we run this:
mergehex --merge bootloader_setting.hex "dfu/Output/Release/Exe/dfu_fw.hex" --output bootloader_w_settings.hex
The mergehex reply: ERROR: The hex files cannot be merged since there are conflicts.
On other topics here on the forum it seem like that it should be a problem with flash/ram, and have tried to fiddle with the settings in the Linker Section Placement Macros without any luck.
This is the Linker Section Placement Macros for application and bootloader
BOOTLOADER
FLASH_PH_START=0x0
FLASH_PH_SIZE=0x80000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x10000
FLASH_START=0x73000
FLASH_SIZE=0xB000
RAM_START=0x20001FF0
RAM_SIZE=0xE010
APPLICATION
FLASH_PH_START=0x0
FLASH_PH_SIZE=0x80000
RAM_PH_START=0x20000000
RAM_PH_SIZE=0x10000
FLASH_START=0x26000
FLASH_SIZE=0x5A000
RAM_START=0x200023D8
RAM_SIZE=0xDEE8
best regards
Jesper de Fries