We have generated a .hex file to be programmed to the external QSPI flash on the QSPI bus of an nRF5340, using the same MX25 part as used on the DVK (8MB/64Mbit) but with a hex file which starts at 0x12000000 and ends at 0x12070000 it cannot be programmed using nrfjprog:
nrfjprog -f NRF53 --program tfm_s_ns_signed_qspi.hex --qspisectorerase --reset Parsing image 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.
This is with the latest nrfjprog version from the site:
nrfjprog -v nrfjprog version: 10.12.1 JLinkARM.dll version: 6.94c
Using the default QSPI configuration file which has:
MemSize = 0x800000
So how do we program the QSPI data into flash for testing with an nRF5340 using nrfjprog?
The .hex file was created using JFlash from an output bin file to change the start offset to 0x12000000, here is what the .hex file beginning and end addresses show as in JFlash:
