diff options
| -rw-r--r-- | embassy-nrf/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index 2f5ad352f..5d9f0e463 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs | |||
| @@ -798,9 +798,9 @@ pub fn init(config: config::Config) -> Peripherals { | |||
| 798 | // Chips with a certain chip type-specific build code or higher have an | 798 | // Chips with a certain chip type-specific build code or higher have an |
| 799 | // improved APPROTECT ("hardware and software controlled access port protection") | 799 | // improved APPROTECT ("hardware and software controlled access port protection") |
| 800 | // which needs explicit action by the firmware to keep it unlocked | 800 | // which needs explicit action by the firmware to keep it unlocked |
| 801 | // See https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/working-with-the-nrf52-series-improved-approtect | 801 | // See https://docs.nordicsemi.com/bundle/ps_nrf52840/page/dif.html#d402e184 |
| 802 | 802 | ||
| 803 | // UICR.APPROTECT = SwDisabled | 803 | // UICR.APPROTECT = HwDisabled |
| 804 | let res = uicr_write(consts::UICR_APPROTECT, consts::APPROTECT_DISABLED); | 804 | let res = uicr_write(consts::UICR_APPROTECT, consts::APPROTECT_DISABLED); |
| 805 | needs_reset |= res == WriteResult::Written; | 805 | needs_reset |= res == WriteResult::Written; |
| 806 | // APPROTECT.DISABLE = SwDisabled | 806 | // APPROTECT.DISABLE = SwDisabled |
