Does anyone know if the Arduino Opta RS485 has a hardware watchdog to reset the CPU in case the user program becomes unresponsive?
Thanks in advance!
steve9
2
Hi, same MCU as the GIGA so you can try:
mbed::Watchdog &watchdog = mbed::Watchdog::get_instance();
void setup() {
...
watchdog.start(timeout_in_ms);
}
void loop() {
...
watchdog.kick();
}
Once started, it cannot be stopped but you can change the timeout with another call to .start()