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

nrfjprog --readcode returns error

I am trying to use nrfjprog.exe (for the first time) to see if my code is being corrupted on a power fail.  It keeps returning an error that I can find documentation on.

Here is the command and the errors:

C:\Program Files (x86)\Nordic Semiconductor\nrf-command-line-tools\bin>nrfjprog --readcode after.hex
ERROR: The file specified is not a valid hex file, has data outside valid areas
ERROR: or does not have data in valid areas.

Please help

Robin @ TL  

  • Hello Susheel,

    I found the version of the command line tools that aligns with the Segger install I am using. So it appears all in working now.

    There is an issue with finding this alignment though.  I was pretty lucky in my choice.  The change notes on the site are not all consistent in there content.  I would recommend that the site have this alignment clearly stated somewhere.

    I will close this case when I hear from you on this software alignment concern.

    Thanks endlessly,

    Robin @ TL 

  • Thanks for letting us know about this Robin. Do you mean that command line tools have a specific segger driver version to be installed to work? Normally, command line tools also prompts to install segger drivers. I am guessing that there was some change in either command line tools or segger that happened to be incompatible. Good that you figured it out and got it working.

Related