How do I soft reset the NRF52?
So Im using Adafruit core for NRF52 based board. I wanted to soft reset the board, i.e. reset via code, how do I do that?
Apologies if it was asked before, I googled and couldn't find the answer
How do I soft reset the NRF52?
So Im using Adafruit core for NRF52 based board. I wanted to soft reset the board, i.e. reset via code, how do I do that?
Apologies if it was asked before, I googled and couldn't find the answer
#include <Adafruit_TinyUSB.h> // Include the TinyUSB library
#include <nrf.h> // Include the Nordic headers
void setup() {
// Initialize Serial for debugging
Serial.begin(115200);
while (!Serial) {
delay(10); // Wait for the Serial monitor to open
}
Serial.println("Board will reset in 3 seconds...");
delay(3000); // Wait for 3 seconds
// Trigger a system reset
NVIC_SystemReset();
}
void loop() {
// Your main code here
}