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?