Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nrf52840: missing approtect config #420

Open
FlorianUekermann opened this issue Apr 24, 2023 · 0 comments
Open

nrf52840: missing approtect config #420

FlorianUekermann opened this issue Apr 24, 2023 · 0 comments

Comments

@FlorianUekermann
Copy link

It looks like approtect config related bits are incomplete for nrf52840 with build codes Fxx and after.

nrf52840_hal::pac::uicr::approtect::PALL_A needs an extra variant HW_DISABLED = 0x5A and there is a new APPROTECT.DISABLE register, which needs to be set to SW_DISABLE = 0x5A after every reset to disable approtect until next reset.

The mechanism to enable the debugging port is:

  • Set UICR.APPROTECT to HW_DISABLED after uicr erase
  • Set APPROTECT.DISABLE to SW_DISABLE after every reset

Reference:
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fdif.html&anchor=debugandtrace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant