This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52 DK changing RESET pin from P0.21 to somewhere else

Hi,

I am using nRF52 board and want to change the RESET output from P0.21 to P0.2.

-I have CONFIG_GPIO_AS_PINRESET defined in the makefile.

-When debugging I can read the PSELRESET[0] and PSELRESET[1] registers have the value of 0x15 (ie 21)

-I go to System_nrf52.c file and change NRF_UICR->PSELRESET[0] = 21; as NRF_UICR->PSELRESET[0] = 2; NRF_UICR->PSELRESET[1] = 21; as NRF_UICR->PSELRESET[1] = 2;

-Unplug the USB cable, build, plug USB cable debug. Still PSELRESET[0] and PSELRESET[1] registers have the value 21.

I read in the comments from another question (Einar Thorsrud wrote) which said P0.21 is the only pin to be used as RESET pin, meaning PSELRESET register is useless in a way. Is this correct? Can't we definitely change the RESET pin?

Thanks

Related