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

NRFJPROG ERROR return code 9

We are developing a test jig that also programs the Nordic nRF51822 on our board.

We are receiving the following error message from the command line programmer: NRFJPROG ERROR: nrfjprog encountered an error condition that should not occur. Please report the error to Nordic Semiconductor support with the text "write_and_verify_hex_file: return code 9"

What are the conditions that cause this error?

Parents
  • Hi

    Here the engineer that was contacted. I have been checking the logs, and I suspect that, apart from a bug in my error reporting, your smartdrive_bootloader.hex (starting at address 0x3A000) is in conflict with either your smartdrive_app.hex or info_block.hex. Have you checked that they are not overlapping? The easiest way to check would be to use megehex for the task.

    To use mergehex write in command line the following: mergehex -m smartdrive_bootloader.hex smartdrive_app.hex -o test.hex

    I suspect you will get an error merging, with a conflict at the address mentioned.

Reply
  • Hi

    Here the engineer that was contacted. I have been checking the logs, and I suspect that, apart from a bug in my error reporting, your smartdrive_bootloader.hex (starting at address 0x3A000) is in conflict with either your smartdrive_app.hex or info_block.hex. Have you checked that they are not overlapping? The easiest way to check would be to use megehex for the task.

    To use mergehex write in command line the following: mergehex -m smartdrive_bootloader.hex smartdrive_app.hex -o test.hex

    I suspect you will get an error merging, with a conflict at the address mentioned.

Children
Related