We have been trying to upgrade nRF connect SDK from v3.1.1 to v3.2.1 and run into the following issue:
When we enable CONFIG_PM_DEVICE_RUNTIME=y after flashing, the device gets inaccessible via J-LINK.
It is easy to reproduce on nrf9151dk, blinky sample, by adding the following config:
CONFIG_PM_DEVICE=y CONFIG_PM_DEVICE_RUNTIME=y CONFIG_PM_DEVICE_POWER_DOMAIN=y CONFIG_POWER_DOMAIN=y
After flashing, the device becomes inaccessible via J-LINK.
nrfutil device reset ❌ Failed to reset 1051215211, Failed to attach to target: The Application core access port is protected Error: One or more reset tasks failed: * 1051215211: Failed to attach to target: The Application core access port is protected (All) (NotAvailableBecauseProtection) The operation was unavailable for some of the devices because they had readback protection enabled. These devices might be possible to unlock using the `recover` subcommand. See `nrfutil device recover --help` for more information.