1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/nrf52_resetpin_cfg
Gregory Holder 4a3240b524 dist/tools: add "RESET_PIN" value for the dwm1001
Set "RESET_PIN" to 21 if the selected board is "dwm1001".
2022-10-28 13:47:44 +02:00
..
main.c tools/nrf52_resetpin_cfg: fix typo in code 2021-01-08 10:15:32 +01:00
Makefile dist/tools: add "RESET_PIN" value for the dwm1001 2022-10-28 13:47:44 +02:00
README.md tools: add nrf52_resetpin_cfg tool 2018-09-28 16:50:58 +02:00

Program the reset pin for nRF52x CPUs

Simply compile, flash, and run this tool on your nRF52x-based board. It will program the given RESET_PIN into the NRF_UICR->PSELRESET registers, hence allowing for hardware resets using a button connected to that pin.

Context

For nRF52x CPUs, the reset pin is programmable. The reset pin configuration is store in two persistent registers, that are programmed in the same way as the CPUs flash memory.

In most cases, these values should be readily programmed when you get your board, and thus do not need to be touched. However, we have seen however a number of nrf52xxxdk boards, where this was not the case and the on-board reset button did have no effect. Running this tool on those boards solves the issue.