Hi…
I am using Arduino and esp32s3 board.
To reset the board from a serial command, you could use this code below in the loop() function. Then type ‘reset’ at the terminal, and the board will reset. May not help if board is in deep sleep mode however.
// --- esp_register_shutdown_handler() function can register a routine
// --- that will be automatically called before a restart
// ---- (that is triggered by esp_restart()) occurs.
// -------------------------------
String temp;
if (Serial.available())
{
temp = Serial.readString();
Serial.println(temp);
if (temp.indexOf("reset") != -1)
{
// "reset" is present
Serial.println("Substring [reset] found!");
ESP.restart();
}
}