Seeing the failure below and wondering a couple things:
- How did the device get into this state?
- How do I disable AP protection? The Kconfig GUI seems to indicate that it is already disabled.
Output:
Seeing the failure below and wondering a couple things:
Output:
Hi,
As the log indicated, the board is under AP protection status and needs to run "west flash --recover" to unlock the board. If you are using VS Code, you can check here.
Regards,
Amanda H.
Hi,
As the log indicated, the board is under AP protection status and needs to run "west flash --recover" to unlock the board. If you are using VS Code, you can check here.
Regards,
Amanda H.
Thanks, Amanda. As to my first question, how would the device have entered this state?
This can happen automatically after certain operations, such as a reset or power cycle, if the firmware does not explicitly disable the protection on startup, or if protection settings are enabled in the build configuration. When this protection is active, attempts to flash or debug the device will fail with errors indicating that access is not available due to protection. The solution is to use the west flash --recover
command (or equivalent recovery commands), which erases the device and disables the protection, restoring access for flashing and debugging. See Programming and Debugging (nrf54l15dk).