Module nrf52::approtect

source ·
Expand description

Access port protection

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fdif.html&cp=5_0_0_3_7_1&anchor=register.DISABLE

The logic around APPROTECT was changed in newer revisions of the nRF52 series chips (Oct 2021) and later which requires more careful disabling of the access port (JTAG), both in the UICR register and in a software written register. This module enables the kernel to disable the protection on boot.

Example code to disable the APPROTECT protection in software:

let approtect = nrf52::approtect::Approtect::new();
approtect.sw_disable_approtect();

Structs§