Hello
I am using SDK12.3 on nRF51822 chip using Keil V5 on windows 10.
I am using experimental_ble_app_buttonless_dfu example and bootloader_secure example.
They both work as expected.
Now I want to generate a bootloader merged that contains the App settings with this command
nrfutil settings generate --family NRF51 --application APP\nRF51_x_x_x.hex --application-version 111 --bootloader-version 10 --bl-settings-version 1 BL_Settings\BL_settings.hex
The BL_settings.hex is generated. then I used the command below to merge the BL with BL_settings.hex
mergehex -m BL\nRF51_BL_0_1_0.hex BL_Settings\BL_settings.hex -o BL_Merged\BL_merged.hex
but, I got an error : ERROR: The hex files cannot be merged since there are conflicts.
I investigate the problem and I found out that the last address in the BL hex file is F770 ( :10F7700000100000000C0400A9CB030000000000F2 ) .
The BL_settings.hex content is :
:020000040003F7
:10EC0000F02C774B010000006F0000000A000000AC
:10EC100000000000000000009CDE0000451851A527
:10EC200001000000000000000000000000000000E3
:10EC300000000000000000000000000000000000D4
:10EC400000000000000000000000000000000000C4
:0CEC5000000000000000000000000000B8
:10FC0000F02C774B010000006F0000000A0000009C
:10FC100000000000000000009CDE0000451851A517
:10FC200001000000000000000000000000000000D3
:10FC300000000000000000000000000000000000C4
:10FC400000000000000000000000000000000000B4
:0CFC5000000000000000000000000000A8
:00000001FF
The content of the orange part and the blue part is the same (except the begin (address) and the end )
I conclude that the orange part is in the BL range, that is conflict has come from.
I have deleted the orange part in BL_settings.hex and execute the merge command again and it works!!! (The BL_merged recognize the application and I can perform a DFU with success).
So, why the generate settings command generates the same information in two different addresses?
Best regards