Replies: 3 comments 2 replies
-
Because things like WDT and reset are all HW driven and not really Arduino core related, I think you will have better luck on the RPI forums or Pico-SDK repo. |
Beta Was this translation helpful? Give feedback.
-
my proposal for a additional function in the RP2040 Helper Classvoid rp2040.resetReason()
output:RESET Reason = 3 |
Beta Was this translation helpful? Give feedback.
-
Kendo55, Are you going to follow through with this addition? Richard |
Beta Was this translation helpful? Give feedback.
-
on esp8266 we had the opportunity to ask for the RESET reason after reboot.
is there an equivalent on PICO?
on esp8266
rst_info *resetInfo;
resetInfo = ESP.getResetInfoPtr();
uint16_t reset_reason = resetInfo->reason;
"0 Power reboot\n"
"1 Hardware WDT reset\n"
"2 Fatal exception\n"
"3 Software watchdog reset\n"
"4 Software reset\n"
"5 Deep-sleep\n"
"6 Hardware reset\n";
Beta Was this translation helpful? Give feedback.
All reactions