In my code (cloned from a "normal" Uno) I have a watch dog timer set up using the following statement:
wdt_enable(WDTO_8S); // Enable WDT at 8 seconds
When I compile I get an error about "error: 'WDTO_8S' was not declared in this scope" and a suggestion to use "suggested alternative: 'WDTO_1S'". So, is there some issue with the chip not supporting timers that are longer than a second? If so, is there a reasonable work around or some other way to define a longer timer?
According to the datasheet of the 4809 processor the WDT supports up to 8 seconds. However the compiler bases support for WDT0_4S AND WDT0_8S on the presence of a defined constant WDP3; and WDP3 is not defined for the 4809.
So your maximum is WDT0_2S.
This is more than likely because the watchdog registers are completely different between the 4809 (Uno WiFi Rev2) and the 328P (Uno/Nano/...). In the 328P WDP3 is a bit in the watchdog control register.
I can not say if there is a workaround except for writing your own watchdog config.
Is there a specific reason why you need 8 seconds?