Arduino IDE fails to upload

When trying to use the Arduino IDE I get this:

Sketch uses 78840 bytes (0%) of program storage space. Maximum is 16777216 bytes.
Global variables use 53288 bytes (19%) of dynamic memory, leaving 217048 bytes for local variables. Maximum is 270336 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
/home/user/.arduino15/packages/arduino/tools/rp2040tools/1.0.2/rp2040load -v -D /tmp/arduino_build_953887/Blink.ino.elf 
rp2040load 1.0.1 - compiled with go1.15.8
An error occurred while uploading the sketch
Board at /dev/ttyACM0 is not available

The board resets and I see the mass storage device just before the IDE fails. I can cp /tmp/arduino_build_953887/Blink.ino.elf /<mounted location> at that point and it loads, reboots, and works fine.

What's up with the IDE?

1 Like

Are you sure that the board is on /dev/ttyACM0?

I recently has similar problems with a Pico, and it had turned out that my "guess" at which serial port was in use was wrong. It would still upload if reset manually (because the rom bootloader is pure and detectable USB), but of course setting the wrong port to 1200bps did not have the desired "reset" effect.

(OTOH, I plugged the Pico running an Arduino sketch into a Linux system, and it did indeed show up as ttyACM0...)

I'm sure. It actually uses ttyACM0 to reset the board and put it into bootloader mode. It's the right port.

Exactly the same here...

I don't know if you saw the little workaround I'm doing - just export the binary (should be a uf2), click the button twice, and drag and drop the uf2 to the disk that appears.

It's not ideal but at least you'll be able to use the board. :slight_smile:

my arduino ide 1.8.13 esport sketch as a *.bin format... what are ewxactly using to have an UF2 format?

During the export/compile process in the output window I see:
/home/user/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-size -A /tmp/arduino_build_735665/MultipleBlinks-Modified.ino.elf

I use that ELF file with the elf2uf2 tool that (for me) is in:

I also found out that the rp2040load tool (where the IDE fails) seems to work if sudo which is... :expressionless: I haven't messed around with it to find out why.

seems i have resolved pretty all after reading this:


My new RP2040 seems to be doing the same thing (in Windows). It doesn't upload new scripts from IDE. It either a flash drive or a factory blinker. When in flash drive mode, IDE does not communicate. When in Adruino mode, it fails before it uploads the script, and then goes to flash drive mode.

Pressing the reset button 2 times, toggles between these two modes.

How can I use this like a normal Arduino where I can send scripts to the board using IDE?


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