Unable to flash due to protection on device, required to erase flash memory

Hi,

I need to capture the data packet transmitted by ble from my phone (acting as Central), I followed the Bluetooth LE sniffer example and was able to capture the data packet.

However, when I try to flash my original script on VScode to my board without erasing the LE sniffer firmware I flashed from the nrf Connect desktop earlier, I was prompted by an error saying "Flashing failed due to protection on the device.

I was wondering if there is a way to flash without erasing the previous memory? Or am I doing it wrong?

Thanks for your patient,

Johan 

Related