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

Do an erase all like segger for DK but for dongle on nRFConnect

Hi community !
Here : https://devzone.nordicsemi.com/f/nordic-q-a/62414/different-behaviour-with-same-program-and-boards
i get some problem with different behaviour when programming. So i put the same code on nRF52840 DK and i got the same problem so i click on "erase all" on segger and then reprogram the dk and the code works !!!
So now, i need to do the same with dongle. Could you help me ? i don't have any external debugger and i wanted to know if it's possible with nRF Connect.
Sincerely

PG

Parents
  • (Updated)

    Another workaround is that it would be possible to create a HEX-file with the entire flash area set to 0xFF to make the DFU process "erase" the flash. I have not tested it, but I can't think of any reasons it should not work. That is not the exact same thing as you want "Erase all". But I believe that it could possibly solve your issue.

    --

    Hi PauGui,

    You cannot do an erase all via nRF Connect for Desktop programmer app when using the dongle. The reason for doing this is that if someone erases the bootloader, it would not be possible to program any new applications on the dongle anymore. The reason that nrfjprog does not work with the dongle is that you do not have a built in J-Link on the 52840 dongle. If you want to do an erase all you will have to use an external debugger. See the nRF52840 Dongle tutorial for how to do this. 

    -Amanda H.

  • Is there an easy way to create a hex file like this ?
    I made a mistake, i don't want to "erase all" but "erase"

Reply Children
No Data
Related