Upload: Property 'upload.tool.serial' is undefined

Hi

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

hi @Juraj

THank you,

I am not too sure if this is directly related to my issue.

The GitHub link you have is about Arduino OTA, the issue I have is on the CLI :confused:

It could be the e same thought

just read it

Yep, Read it, see you merged it. I suppose is not on the latest yet?

Also as far as Arduino IDE and CLI go I am a user, not a sudo-user :slight_smile:

sorry, I see the pico core has empty programmers.txt so the cause is something else there

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:

  1. Open the file at this path in any text editor:
    /Users/johnstilia/Documents/GitHub/hardware-gps-tracker/hardware/gps_unit/.arduino/data/packages/rp2040/hardware/rp2040/2.6.1/boards.txt
    
  2. Add the following line anywhere in the file:
    rpipico.upload.tool.default=uf2conv
    
  3. Save the file.

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.

I provided an equivalent (but adjusted to be applicable to the specific problem in the RP2040 platform) explanation in the pull request at https://github.com/earlephilhower/arduino-pico/pull/933

If you happen to be interested in all those boring details and have any additional questions I'd be happy to answer them.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.