nrf-rs / nrf-pacs

Peripheral Access Crates (PACs) for nRF microcontrollers
BSD Zero Clause License
27 stars 11 forks source link

nrf52840: missing `APPROTECT` and the `HwDisable` value for `UICR.APPROTECT` #17

Open TheButlah opened 1 year ago

TheButlah commented 1 year ago

These are important, because without access to these peripherals, revision 3 chips will enter a protected state that blocks the hardware debugger from accessing them on reset.

It appears this was added to the nrf52840 product specification in April 2021

related issues: https://github.com/embassy-rs/embassy/issues/1148 https://github.com/probe-rs/probe-rs/issues/1324#issuecomment-1356273774

frankplow commented 10 months ago

Both the APPROTECT peripheral and the HwDisabled value for the UICR.APPROTECT register are present in the SVDs distributed with the nRF5 SDK v17.1.0 or nRF MDK v8.57.0.