Problem uploading sketch to arduino nano rp2040 connect

Hi,

I got a brand new arduino nano rp2040 connect and I am trying to upload the example blink sketch from the Arduino IDE (running on Ubuntu 18.04). However something goes wrong during the upload and I end up with this error:

/home/kidom/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-size -A /tmp/arduino_build_827190/Blink.ino.elf
Sketch uses 89574 bytes (0%) of program storage space. Maximum is 16777216 bytes.
Global variables use 43448 bytes (16%) of dynamic memory, leaving 226888 bytes for local variables. Maximum is 270336 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
/home/kidom/.arduino15/packages/arduino/tools/rp2040tools/1.0.6/rp2040load -v -D /tmp/arduino_build_827190/Blink.ino.elf
rp2040load 1.0.6 - compiled with go1.16.2
.....................
An error occurred while uploading the sketch

It seems that the arduino is mounted correctly in /dev/ttyACM0, but when I try to do the upload I can no longer see the device and I get a notification that RPI-RP2 is mounted.

I have tried changing 3 USB cables, but the problem persists.

I also saw a similar behaviour when trying to configure the arduino for the arduino cloud.
It is detected, but when I try to configure it gets disconnected.

RPI-RP2 has these two files inside:
INDEX.HTM
INFO_UF2.TXT

If it helps I get the following kernel messages when I try to upload the sketch:
[ 226.899035] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
[ 325.788441] usb 1-1: USB disconnect, device number 10
[ 326.098429] usb 1-1: new full-speed USB device number 11 using xhci_hcd
[ 326.247336] usb 1-1: New USB device found, idVendor=2e8a, idProduct=0003, bcdDevice= 1.00
[ 326.247342] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 326.247346] usb 1-1: Product: RP2 Boot
[ 326.247349] usb 1-1: Manufacturer: Raspberry Pi
[ 326.247351] usb 1-1: SerialNumber: E0C9125B0D9B
[ 326.276485] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 326.276645] scsi host4: usb-storage 1-1:1.0
[ 326.276799] usbcore: registered new interface driver usb-storage
[ 326.279720] usbcore: registered new interface driver uas
[ 327.303447] scsi 4:0:0:0: Direct-Access RPI RP2 3 PQ: 0 ANSI: 2
[ 327.304014] sd 4:0:0:0: Attached scsi generic sg0 type 0
[ 327.304451] sd 4:0:0:0: [sda] 262144 512-byte logical blocks: (134 MB/128 MiB)
[ 327.304788] sd 4:0:0:0: [sda] Write Protect is off
[ 327.304792] sd 4:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 327.305120] sd 4:0:0:0: [sda] No Caching mode page found
[ 327.305127] sd 4:0:0:0: [sda] Assuming drive cache: write through
[ 327.343971] sda: sda1
[ 327.372106] sd 4:0:0:0: [sda] Attached SCSI removable disk

Any idea why might that be and how can I fix it?

1 Like

Try to connect your board to USB with button pressed and holded. Release button few seconds after connect and then try to upload.

Thanks!
Unfortunately I tried, but the error persists :frowning:

Arduino: 1.8.19 (Linux), Board: "Arduino Nano RP2040 Connect"

/home/kydo/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-size -A /tmp/arduino_build_827190/Blink.ino.elf
Sketch uses 89574 bytes (0%) of program storage space. Maximum is 16777216 bytes.
Global variables use 43448 bytes (16%) of dynamic memory, leaving 226888 bytes for local variables. Maximum is 270336 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
/home/kydo/.arduino15/packages/arduino/tools/rp2040tools/1.0.6/rp2040load -v -D /tmp/arduino_build_827190/Blink.ino.elf 
rp2040load 1.0.6 - compiled with go1.16.2
.....................
An error occurred while uploading the sketch

Is it normal that it does:
Forcing reset using 1200bps open/close on port /dev/ttyACM0

I should also mention that uploading sketches to my Arduino Uno works fine.

I'm not familiar with your board but I think it is normal. The reset results in activation of the bootloader so you can upload. This is different from Arduinos that have a dedicated chip to provide the USB functionality where the DTR signal forces the reset of the processor.

1 Like

I had same problem on ubuntu.

The installation guide is incomplete. After installing, close the ide,
navigate to the directory .arduino15/packages/arduino/hardware/mbed_nano/3.4.1/

and run the post_install.sh as root from a terminal.
sudo post_install.sh

2 Likes

Any update to solve this problem? I have the same issue and always need to reboot my laptop to be able to upload a sketch :-/

1 Like

this worked for me, thanks!

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