I built your ota_update example and flashed it onto my Raspberry Pi Pico2W.
After flashing, the Pico2W successfully connects to my network and obtains an IP address.
However, when I subsequently perform an OTA update, the Pico2W restarts but is then unable to reconnect to the network with connect status bad auth.
If I then power cycle the Pico2W by unplugging the USB cable, wait a moment, and then reconnect it via USB, it restarts again and is subsequently able to successfully reconnect to the network.
This behavior occurs every time and is therefore reproducible.
Please refer to the following UART log:
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: no ip
connect status: link up
Connected.
Boot partition was 1
Someone updated into me
Flash update base was 101b6000
Update info 1
Starting server at 192.168.178.64 on port 4242
Code Target partition is fc36a002 fc061001
Start 2000, End 1b6000, Size 1b4000
Done - rebooting for a flash update boot 0
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: bad auth
failed to connect.
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: bad auth
failed to connect.
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: no ip
connect status: link up
Connected.
Boot partition was 1
Starting server at 192.168.178.64 on port 4242
I built your
ota_updateexample and flashed it onto my Raspberry Pi Pico2W.After flashing, the Pico2W successfully connects to my network and obtains an IP address.
However, when I subsequently perform an OTA update, the Pico2W restarts but is then unable to reconnect to the network with connect status bad auth.
If I then power cycle the Pico2W by unplugging the USB cable, wait a moment, and then reconnect it via USB, it restarts again and is subsequently able to successfully reconnect to the network.
This behavior occurs every time and is therefore reproducible.
Please refer to the following UART log:
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: no ip
connect status: link up
Connected.
Boot partition was 1
Someone updated into me
Flash update base was 101b6000
Update info 1
Starting server at 192.168.178.64 on port 4242
Code Target partition is fc36a002 fc061001
Start 2000, End 1b6000, Size 1b4000
Done - rebooting for a flash update boot 0
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: bad auth
failed to connect.
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: bad auth
failed to connect.
Chosen CYW43 firmware in partition 3
Version: 7.95.61 (abcd531 CY) CRC: 4528a809 Date: Wed 2023-01-11 10:29:38 PST Ucode Ver: 1043.2169 FWID 01-7afb0879
cyw43 loaded ok, mac 2c:cf:67:e5:aa:41
API: 12.2
Data: RaspberryPi.PicoW
Compiler: 1.29.4
ClmImport: 1.47.1
Customization: v5 22/06/24
Creation: 2022-06-24 06:55:08
Connecting to Wi-Fi...
connect status: joining
connect status: no ip
connect status: link up
Connected.
Boot partition was 1
Starting server at 192.168.178.64 on port 4242