Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flashing the hex file using nrfjprog on same location in Flash getting wrong data issue

Hi,

I am flashing Blinky led hex file on the flash at 0x5E000 location.

And again if i try to flash the different Blinky hex file at the same location. it wasn't working.

And when i tried to read the data through nrfjprog --memrd then it shows the previous hex file data at 0x5E000 location.

Can anyone let me know that why this type of behavior is there. 

Command used for flashing the hex file:-

nrfjprog --reset --program blinky_pca10056.hex --family NRF52

Note:- If i do eraseall and then flash 2nd hex file then no issue in that.

Regards

Parents
  • Hi Rohit!

    If the two hex files are different then they can overwrite each other in different ways causing them not to work. Even though you write the hex file in the same place in the flash, they wont necessarily overwrite each other completely if there are differences between them.

    You will have to erase first.

    Best regards,

    Elfving

Reply
  • Hi Rohit!

    If the two hex files are different then they can overwrite each other in different ways causing them not to work. Even though you write the hex file in the same place in the flash, they wont necessarily overwrite each other completely if there are differences between them.

    You will have to erase first.

    Best regards,

    Elfving

Children
Related