where to find the version of mergehex.exe for nrf52832, which combines softdevice, app and bootloader into a single hex.
where to find the version of mergehex.exe for nrf52832, which combines softdevice, app and bootloader into a single hex.
Hi,
Mergehex is installed as part of the command line tools. And can be found in C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin
.
Best regards,
Øyvind
I tried it as blow
mergehex.exe -m s332_pca10040.hex nrf52832_bootloader_s332.hex -o app.hex
mergehex.exe -m ANT_s332_nrf52_0.9.1.alpha.hex app.hex -o test.hex
nrfjprog.exe --eraseall
nrfjprog.exe --program test.hex
nrfjprog.exe --verify test.hex
nrfjprog.exe -r
the version of mergehex.exe is 8.2.0, nrfjprog.exe is the same
but it keeps at bootloader after programed. I must do dfu app the let the app works. Is there something wrong?
As a sanity check, have you verified that all these work when programmed separately?
Are you sure the app is compiled with the correct IRAM and IROM values with respect to the bootloader and SoftDevice?
Finally, when flashing your bootloader normally, does it not hang there?
The application is not marked as "valid" so the bootloader will enter DFU mode on startup. However, you can set this application valid flag manually in the bootloader image as explained in this blog post:
Modify the bootloader firmware to write 0x01 to that address using attribute . It's the same way as we did on writing to NRF_UICR_BOOT_START_ADDRESS the value of BOOTLOADER_REGION_START (see bootloader_setting_arm.c)
Thanks, it is settled!