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
  • Thank you.

    We have found an overlap in the info_block.hex and smartdrive_bootloader.hex. We will report the cause and results when the programmer has done the testing.

  • We separated programming the smartdrive_app.hex and info_block.hex. The 'error code 9' report still occurs about 3 in 16 program cycles.

    The sequence we now do is: (1) Program smartdrive_bootloader.hex (2) Program smartdrive_app.hex (3) Program info_block.hex

    However, the error occurs during step (2) - before we got to info_block which has the overlapping data.

  • Can you send me the hex files so I can take a look? My mail is david.garcia.polo@nordicsemi.no. We can discuss with Nordic support if you need a more private channel.