I'm trying to deploy a new firmware to my hardware device but I get the following error in the nrf Connect (v3.6.1) Programmer (v1.4.8):
- 16:47:36.937 Error when getting device info: Error: Error: Error occured when get device info. Errorcode: CouldNotCallFunction (0x9) Lowlevel error: NOT_AVAILABLE_BECAUSE_PROTECTION (ffffffa6)
- 16:47:36.937 Could not fetch memory size of target devkit: Cannot read property 'family' of undefined
I cannot read nor erase from the device through the programmer because of this error.
I assume this is because the device is password protected. I know this password, is there a way to erase the device's current firmware?
(I'm using the NRF52-DK to connect/program with it, and the pins are accessible, which is how I'm connecting and I know the chipset is a nrf52840) Wiring now is as followed:
So I'm currently not using the debug output to connect with the device
I've provided power to the custom device by batteries now, no change in the result.
It's unclear what you mean by a "device password" for the nRF52840.
NOT_AVAILABLE_BECAUSE_PROTECTION occurs when the APPROTECT register has been enabled. According to the nRF52840 product spec
Alternatively, if you are using pynrfjprog, the
recover()
method removes the protection.No matter what, flash will always be erased when clearing APPROTECT (unless utilizing the APPROTECT power glitch, but that's another topic)