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

nRF52840 Dongle: erase Provisioning Data

Hello,

I have been trying to program my own Provisioner. While testing I accidentally had a nRF52840 Dongle plugged in with a client running on it. It automatically connected to the Provisionier. Sadly I haven't implemented a disconnect function. I am now stuck with a Dongle that I cannot connect to with another device. I tried reprogramming it multiple time, but it seems that the Provisioning Data is saved in a Part if the Flash that is separate of the program.
The same thing happened with my nRF52840 DK, but through the debugger I can do an "Erase All" which removes any of the Provisioning Data.

Is it possible to do a similar thing with the Dongle?

Cheers,

Kilian

Parents
  • Hi Kilian, 

    The nRF52840 dongle programming on nRFConnect relies on the DFU bootloader to do the programming. Unfortunately, there isn't an option to do an erase all on the DFU bootloader. 

    The easiest way of solving this is to connect the dongle to a JLink programmer and erase it as you do with the nRF52840DK. This requires you to solder a header on P1 port to connect the programmer. 

    Another option if soldering is not an option is to use a big empty application image to cover the area that you want to erase. Basically you would need to generate the image with exact size of application area so that with all 0xFFFFFFFF so that when flashing it the DFU bootloader would erase the provisioning data sector (located one page under FLASH_MANAGER_RECOVERY_PAGE )

  • Hey Hung, could you point to instructions to do it with your second option (flash page) please?

Reply Children
No Data
Related