Hi,
How is the functionality of P0.21 in nRF52832? It is configured as RESET after turning on the device, right? Is there any way to change it in a way that that the chip starts working even when this pin is low?
-Vala
Hi,
How is the functionality of P0.21 in nRF52832? It is configured as RESET after turning on the device, right? Is there any way to change it in a way that that the chip starts working even when this pin is low?
-Vala
Yes it's in the manual. Set PSELRESET registers and reset the chip. They are retained and will disable reset.
Thanks for your answer RK. You are right. Here is what I get: nrfjprog --eraseuicr --family nrf52 Erasing UICR flash area. Applying system reset.
nrfjprog --memrd 0x10001200 --family nrf52 0x10001200: FFFFFFFF |....|
nrfjprog --memrd 0x10001204 --family nrf52 0x10001204: FFFFFFFF |....|
nrfjprog --memwr 0x100010FC --val 0x00000001 --family nrf52 Parsing parameters. Writing.
nrfjprog --memrd 0x100010FC --family nrf52 0x100010FC: 00000001 |....|
nrfjprog -r --family nrf52 Applying system reset. Run.
nrfjprog --memrd 0x10001204 --family nrf52 0x10001204: 00000015 |....|
nrfjprog --memrd 0x100010FC --family nrf52 0x100010FC: 00000001 |....|
After the reset the value of PSELRESET is again 0x00000015. It's interesting because I do not have anything more than a couple of lines for toggling the IOs in my code, which is a modification of the blinky example. Is there anything else I should check?
Thanks for your answer RK. You are right. Here is what I get: nrfjprog --eraseuicr --family nrf52 Erasing UICR flash area. Applying system reset.
nrfjprog --memrd 0x10001200 --family nrf52 0x10001200: FFFFFFFF |....|
nrfjprog --memrd 0x10001204 --family nrf52 0x10001204: FFFFFFFF |....|
nrfjprog --memwr 0x100010FC --val 0x00000001 --family nrf52 Parsing parameters. Writing.
nrfjprog --memrd 0x100010FC --family nrf52 0x100010FC: 00000001 |....|
nrfjprog -r --family nrf52 Applying system reset. Run.
nrfjprog --memrd 0x10001204 --family nrf52 0x10001204: 00000015 |....|
nrfjprog --memrd 0x100010FC --family nrf52 0x100010FC: 00000001 |....|
After the reset the value of PSELRESET is again 0x00000015. It's interesting because I do not have anything more than a couple of lines for toggling the IOs in my code, which is a modification of the blinky example. Is there anything else I should check?