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

the file specified is not a valid hex file, has data outside valid areas

dear i am developing dfu function and face a problem as follow:

rfjprog.exe --program
whole.hex --verify -f NRF52
Parsing hex file.
ERROR: The file specified is not a valid hex file, has data outside valid areas
ERROR: or does not have data in valid areas.

i parse the whole.hex,layout,it shows that 

Download block contents Block starting at 0 (0x0), 2408 (0x968) bytes long  --------------------softdevice
Download block contents Block starting at 4096 (0x1000), 136360 (0x214a8) bytes long  -------------------softdevice
Download block contents Block starting at 143360 (0x23000), 26976 (0x6960) bytes long ---app 
Download block contents Block starting at 516096 (0x7e000), 92 (0x5c) bytes long --setting
Download block contents Block starting at 520192 (0x7f000), 92 (0x5c) bytes long --setting
Download block contents Block starting at 524288 (0x80000), 31164 (0x79bc) bytes long ----bootloader_secure
Download block contents Block starting at 268439572 (0x10001014), 8 (0x8) bytes long----bootloader_secure

i am using this project to develop dfu 

nRF5_SDK_14.2.0_17b948a\nRF5_SDK_14.2.0_17b948a\examples\dfu\bootloader_secure_ble\main.c

bootloader start add is :
Download block contents Block starting at 524288 (0x80000), 31164 (0x79bc) bytes long

Related