-
Notifications
You must be signed in to change notification settings - Fork 494
Closed
Description
Summary
When uploading a sketch through OTA with Arduino IDE, the process seems to end successfully. But when the Rpi Pico W reboots, the old sketch is still running, not the new one.
I can't see any errors during upload and in the debug logs (see details below)
Steps to reproduce
-
Board: Raspberry Pi Pico W
-
Arduino IDE 1.8.19
-
arduino-pico 3.9.1
-
Sketch : BasicOTA example with this modifications:
- STASSID and STAPSK defined to match my Wifi config
- those lines are added in the end of
setup()
and commented / uncommented to see if the new sketch is running:
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
- Upload the sketch through Serial Port
- After reboot, the Rpi is connected to Wifi, the LED is on and the Rpi is visible in "Network Ports" in the IDE
- Comment the lines related to lighting up the LED
- Upload sketch through Arduino IDE OTA
- OTA process complete successfully. But after Rpi reboot, the LED is still on indicating that the old sketch is still running
- Upload the sketch through Serial Port
- After Rpi reboot, the LED is now off indicating that the new sketch is now running
Logs
Arduino IDE:
[REDACTED PATH]/packages/rp2040/tools/pqt-python3/1.0.1-base-3a57aed/python3 -I [REDACTED PATH]/packages/rp2040/hardware/rp2040/3.9.1/tools/espota.py -i [REDACTED IP] -p 2040 --auth= -f /tmp/arduino_build_231005/sketch_jun05a.ino.bin
Uploading...................................................................................................................................................................................................................................................................................................
Complete
Serial Debug (only relevant parts, see ota_serial_debug_rpi_pico.log for full log):
OTA server at: pico-E66178758B699838.local:2040
Ready
IP address: [REDACTED IP]
(...)
[begin] _startAddress: 0x00000000 (0)
[begin] _size: 0x000676E8 (423656)
Start updating sketch
(...)
Progress: 100%
MD5 Success: 9ffe28c53125404842b4898770cba54b
lfs_file_close: fd=0x200126f4
lfs_file_close: fd=0x200126f4
:ack 3
lfs_f
549D
ile_close: fd=0x200126f4
Staged: address:0x00000000, size:0x000676E8
:urch 73, 45
:urd 2, 45, 0
:urd 1, 45, 2
:urd 1, 45, 3
:urd 2, 45, 4
:urd 2, 45, 6
:urd 2, 45, 8
:urd 2, 45, 10
:wr 2 0
:wrc 2 2 0
:ack 2
:rcl pb=0 sz=-1
:abort
Update Success
End
Rebooting...
OTA server at: pico-E66178758B699838.local:2040
Ready
IP address: [REDACTED IP]
Metadata
Metadata
Assignees
Labels
No labels