[Bug]: Pico 2 W watchdog reboots during Wi-Fi startup on 2.8.x; 2.7.26 works
Hardware
- Raspberry Pi Pico 2 W with Waveshare SX1262 LoRa HAT
- USB powered
Firmware tested
- Working:
2.7.26.54e0d8d - Failing:
2.8.0.47db0e3(pico2w) - Failing:
2.8.1.d630775(pico2w)
Earlier versions worked in my setup. I had also tried several intermediate firmware builds between the working version and the two builds listed above, and observed the same reboot behavior. I did not record the exact version numbers for those intermediate builds; the two failing builds above are the ones for which I captured the version and serial output.
Description
After a flash nuke and fresh setup, enabling Wi-Fi on the Pico 2 W causes repeated watchdog reboots during startup. The SX1262 initializes successfully. The last serial message before the reboot is:
INFO | ??:??:?? 1 [WifiConnect] Reconnecting to WiFi access point <SSID>The reboot occurs approximately 10 seconds later. On the next boot, the log reports Rebooted by watchdog. On one occasion the node connected after roughly ten reboot attempts, but it failed again after a manual reboot.
Returning to 2.7.26.54e0d8d-MM4.16.1 on the same hardware restored reliable operation.
Reproduction and checks
- Flash nuke the Pico 2 W and install one of the failing
pico2wbuilds above. - Enable Wi-Fi and configure a 2.4 GHz SSID.
- Observe the USB serial log across reboots.
I reproduced the failure with both a WPA2 network and an open network with an empty password. I also configured an SSID that was not being broadcast; the node still rebooted after the same Reconnecting to WiFi access point message. These tests suggest that successful association, authentication and DHCP are not required to trigger the failure.
The WPA2, open-network, and nonexistent-SSID tests described above used the same physical access point. During earlier testing I also used a mobile phone hotspot as a different physical AP and observed the same reboot behavior.
With WiFi disabled, there is no reboot issue.
Expected behavior
The node should continue running and either connect to Wi-Fi or retry when the SSID is unavailable, without a watchdog reboot.
Relevant log excerpt
S:B:79,2.8.0.47db0e3,pico2w,meshtastic/firmware
SX126xInterface(cs=3, irq=20, rst=15, busy=2)
SX1262 init success
JOINING WIFI soon: ssid=<SSID>
PowerFSM init, USB power=1
[WifiConnect] Reconnecting to WiFi access point <SSID>
<watchdog reboot approximately 10 seconds later>Possibly related tracking issue: #11795.
Source: meshtastic/firmware