Windows 11 WSL2, NCS 2, VSCode
I want to be able to trigger a reboot from both hardware and software.
I am able to do this when I flash my code directly from VSCode to the chip, without a bootloader.
When I use a bootloader, however, both the physical reset button as well as software attempts to reboot seem to leave the device in a hung state. I am software rebooting via sys_reboot(SYS_REBOOT_COLD) and NVIC_SystemReset(). I am hardware rebooting the regular way (pulling RESET low).
I am using an Adafruit nRF52840 Feather, which works, so not even a custom board or anything.
I looked at the UICR registers and they're the same when I use a bootloader or not.
PSELRESET[0]: 0x00000012
PSELRESET[1]: 0x00000012 Reset pin connected - port(0), pin(18)
APPROTECT : 0xFFFFFFFF Disabled
NFCPINS : 0xFFFFFFFE Disabled
DEBUGCTRL : 0xFFFFFFFF CPUNIDEN Enabled, CPUFPBEN Enabled
REGOUT0 : 0xFFFFFFFF REG0 VOUT Default 1.8 V
Can you help me work out what might be going on so I can fix it?
Thanks.