Hi Team,
I am working with nRF5340 and have a few clarifications regarding SWD protection (APPROTECT / ERASEPROTECT).
-
While the application is running, is it possible to disable SWD APProtect programmatically (for example, using a command in application-specific shell / UART terminal)?
-
If APPROTECT is enabled, can it be dynamically disabled from firmware during runtime, or is the only supported way to regain debug access via CTRL-AP / nrfjprog --recover?
-
What happens if both APPROTECT and ERASEPROTECT are enabled on nRF5340:
-
Is recovery still possible using CTRL-AP or nrfjprog?
-
Or does enabling both protections permanently block recovery?
-
-
In general, is there any supported method to toggle APPROTECT at runtime, or is it intentionally designed as a one-way operation that requires external recovery tools to disable?
I would appreciate clarification on the intended and supported behavior for nRF5340, and any recommended best practices.