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.

  • Hi,

    Looks like it is simpler to do it from the firmware. I created a small application that will erase all pages from 0x2000 (end of MBR and this application) to 0xE0000 (where serial bootloader starts). You can flash this to the dongle with nRF Connect programmer application. Once the erase operations are completed, the green LED (LED1) on the Dongle will light up.

    I have not verified that this works on the dongle (as I do not have the one with debug interface available at the moment), but I checked that it works as expected on a nRF52840 DK.

    flasherase_nrf52840_dongle_sdk16.zip

    Best regards,
    Jørgen

Reply Children
Related