I am using arduino-cli and I have installed all the libraries needed by the projects etc
When I am issuing the command arduino-cli upload --config-file ./arduino_config.yaml --port $(PORT) -b rp2040:rp2040:rpipico $(FILE)
I am getting the project compiled, but I can't upload it due to the following error
Sketch uses 52148 bytes (2%) of program storage space. Maximum is 2093056 bytes.
Global variables use 7328 bytes (2%) of dynamic memory, leaving 254816 bytes for local variables. Maximum is 262144 bytes.
Used library Version Path
Rtc by Makuna 2.3.5 /Users/johnstilia/Documents/GitHub/hardware-gps-tracker/hardware/gps_unit/.arduino/user/libraries/Rtc_by_Makuna
Used platform Version Path
rp2040:rp2040 2.6.1 /Users/johnstilia/Documents/GitHub/hardware-gps-tracker/hardware/gps_unit/.arduino/data/packages/rp2040/hardware/rp2040/2.6.1
Error during Upload: Property 'upload.tool.serial' is undefined
make: *** [code-upload] Error 1
That didn't seem to be the case on the 2.5.0 version.
It could be something different too.
Thank you in advance for any help you can provide
PS: I have followed some googled suggestions but have had no luck.
also, I need to do it via CLI and not via IDE
I investigated, found the bug in the "Raspberry Pi Pico/RP2040" platform, and submitted a fix:
If accepted, this fix will be in the next release of the "Raspberry Pi Pico/RP2040" platform, but you can apply the fix manually right away if you like. I'll provide instructions:
Now try uploading your sketch again. The error should no longer occur.
Please let me know if you have any questions or problems while following those instructions.
Even if not directly related, the information provided in the PR description is generally relevant. It was written with the intention of serving as a reference for those who might encounter it in their researches in addition to the primary purpose of explaining the pull request.