Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

General • Can no longer flash pico / strange begavior

$
0
0
I used to be able to happily upload code to a Pico using the Arduino 2.3.1 IDE and the Arduino core by Earle Philhower.
I'm using a Debian 12 linux laptop to do so, and programming goes through port /dev/ttyACM0. My udev rules work, because I was able to flash the Pico.
All of a sudden, when I unplug/plug the Pico, I do not see the port /dev/ttyACM0 appearing anymore.

Steps I have tried to fix the issue:
1) flash blink.uf2 after reattaching the PICO with BOOTSEL pressed. - Works. IMHO: no usb cable issue.
Unplug/plug the Pico: no port
2) flash hello_world.uf2 after reattaching the Pico with BOOTSEL pressed. - Works. And the port /dev/ttyACM0 appears again.
Unplug/plug the Pico: port /dev/ttyACM0 reappears.

Thinking I must have solved the issue since the port now does reappear after unplugging an plugging in the Pico, I set out to flash a program fro the IDE again.
Although the IDE shows that the Pico is attached, when uploading, I'm getting the error "No drive to deploy".

Code:

Sketch uses 52244 bytes (2%) of program storage space. Maximum is 2093056 bytes.Global variables use 10232 bytes (3%) of dynamic memory, leaving 251912 bytes for local variables. Maximum is 262144 bytes."/home/hans/.arduino15/packages/rp2040/tools/pqt-python3/1.0.1-base-3a57aed/python3" -I "/home/hans/.arduino15/packages/rp2040/hardware/rp2040/3.7.2/tools/uf2conv.py" --serial "/dev/ttyACM0" --family RP2040 --deploy "/tmp/arduino/sketches/E20D1F63C05AA313BE7638BC46C8D82D/Blink.ino.uf2"Resetting /dev/ttyACM0Converting to uf2, output size: 140288, start address: 0x2000Scanning for RP2040 devicesNo drive to deploy.Failed uploading: uploading error: exit status 1
I do not understand what is happening here.
How can I flash the Pico when in BOOTSEL mode, and no longer using the IDE (that says that de Pico is attached to /dev/ttyACM0) ?

Please help!

Statistics: Posted by phloks — Wed Mar 06, 2024 5:21 pm



Viewing all articles
Browse latest Browse all 4906

Trending Articles