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

How to do "erase all" on NRF52840 Dongle to avoid Mesh Assert error?

Hi,

I'm trying to run the light_switch sample app from nRF SDK for Mesh.

I have both PCA10056 and PCA10059, and I used both to run some other applications before testing the light_switch sample.

I saw in the debugging log from the DK PCA10056 in SES, that if I don't do an "erase all" before loading the sample, all 4 LEDs would stay on and I would get a Mesh Assert error which I think is from flash_area_is_valid(). And doing a complete erase would resolve that problem.

Now when I load the sample onto my dongle PCA10059, same thing happens, the LED stays a all-on status and I don't see the advertising. But I can't do "erase all" on PCA10059, as there is no onboard debugger.

Can someone give a pointer on how I should work around this issue? What should be the right way for me to erase the flash on the dongle without a debugger?

Thank you!

Related