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

nrfjprog Programming HEX

Hi

A nrf52832 device board is programmed with the hex file using nrfjprog command as follow for two times,

In the first time programming, the device board is programmed with the hex file with the following command,
nrfjprog -f nrf52 -s 123456789 --verify --program test.hex --chiperase -c 1000
nrfjprog -f nrf52 -s 682183494 --memwr 0x00074000 --val 0x50515253 --verify
nrfjprog -f nrf52 -s 682183494 --memwr 0x00074004 --val 0x70717273 --verify
nrfjprog -f nrf52 -s 682183494 --memrd 0x00074004 --w 32 --n 4

Then, for the second time, the device board is programmed with the hex file with following command,
nrfjprog -f nrf52 -s 123456789 --verify --program test.hex --chiperase -c 1000
nrfjprog -f nrf52 -s 682183494 --memwr 0x00074000 --val 0x50515253 --verify
nrfjprog -f nrf52 -s 682183494 --memwr 0x00074004 --val 0x60616263 --verify
nrfjprog -f nrf52 -s 682183494 --memrd 0x00074004 --w 32 --n 4

Sometimes, after the second time programming, the result read from the command "nrfjprog -f nrf52 -s 682183494 --memrd 0x00074004 --w 32 --n 4" is 0x70717273 but not 0x60616263.
Would you have any ideas why the result read is 0x70717273 occasionally after the second time programming? 

Thanks

Parents Reply Children
No Data
Related