Arduino rp2040 connect uploads once from arduino-cli then never again

I've been using an arduino rp2040 connect from arduino-cli and it was fine uploading. I upgraded the libraries:

arduino-cli lib upgrade

and now upload fails every time:

arduino-cli upload --port /dev/ttyACM0 --fqbn arduino:mbed_nano:nanorp2040connect WiFi

.....................
Failed uploading: uploading error: exit status 1

I tried upgrading the firmware:

./arduino-fwuploader firmware flash -b arduino:mbed_nano:nanorp2040connect -a /dev/ttyACM0 -m NINA@1.5.0

but what happened isn't documented. I just get a load of these then nothing:

rp2040load 1.0.1 - compiled with go1.15.8
.....................

which is the same as when the board is unplugged. So it looks like arduino-cli can no longer connect to the board.

The board is listed and I can upload from the Arduino IDE but arduino-cli upload is broken as is the firmware updater.

Double tapping the reset button does nothing.

I unplugged the board, then plugged it back in and re-ran the firmware updater and it said:

==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount ===
Authentication is required to mount RPI RP2 (/dev/sdc1)
Authenticating as: ,,, (pi)

None of the above is documented.

Would upgrading libraries break everything?

I was curious about the board definition and noticed there is now another one:

rp2040:rp2040:arduino_nano_connect

using that one solved the problem. Once. The second upload failed with:

Resetting /dev/ttyACM0
Converting to uf2, output size: 140288, start address: 0x2000
Scanning for RP2040 devices
No drive to deploy.
Failed uploading: uploading error: exit status 1

so I double tapped the reset button and the upload worked again:

Resetting /dev/ttyACM0
Converting to uf2, output size: 140288, start address: 0x2000
Scanning for RP2040 devices
==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount ===
Authentication is required to mount RPI RP2 (/dev/sdc1)
Authenticating as: ,,, (pi)
Password:
==== AUTHENTICATION COMPLETE ===
Flashing /media/pi/RPI-RP2 (RPI-RP2)
Wrote 140288 bytes to /media/pi/RPI-RP2/NEW.UF2

which matches the output from the IDE. It seems the board had changed at some point. The double tap on the reset button doesn't work for the "arduino:mbed_nano:nanorp2040connect" board.

The behaviour is inconsistent as "rp2040:rp2040:arduino_nano_connect" seems to work most of the time:

upload --port /dev/ttyACM0 --fqbn rp2040:rp2040:arduino_nano_connect Blink

using sudo with the firmware upater solves that issue, eventually.

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