0

I was trying to upload a sketch in my RaspBerry PI Pico W (USB) when suddenly this error occurred:

Sketch uses 316068 bytes (15%) of program storage space. Maximum is 2093056 bytes.
Global variables use 70456 bytes (26%) of dynamic memory, leaving 191688 bytes for local variables. Maximum is 262144 bytes.
"C:\Users\BUBE\AppData\Local\Arduino15\packages\rp2040\tools\pqt-python31円.0.1-base-3a57aed-1/python3" -I "C:\Users\BUBE\AppData\Local\Arduino15\packages\rp2040\hardware\rp20405円.4.2/tools/uf2conv.py" --serial "UF2_Board" --family RP2040 --deploy "C:\Users\BUBE\AppData\Local\arduino\sketches\BB24F76DA4EF277D4143A4D5C1704EAF/2.ino.uf2"
Converting to uf2, output size: 666624, start address: 0x2000
Scanning for RP2040 devices
Flashing E: (RPI-RP2)
Traceback (most recent call last):
 File "C:\Users\BUBE\AppData\Local\Arduino15\packages\rp2040\hardware\rp20405円.4.2/tools/uf2conv.py", line 447, in <module>
 main()
 File "C:\Users\BUBE\AppData\Local\Arduino15\packages\rp2040\hardware\rp20405円.4.2/tools/uf2conv.py", line 432, in main
 write_file(d + "/NEW.UF2", outbuf)
 File "C:\Users\BUBE\AppData\Local\Arduino15\packages\rp2040\hardware\rp20405円.4.2/tools/uf2conv.py", line 325, in write_file
 with open(name, "wb") as f:
OSError: [Errno 22] Invalid argument: 'E:/NEW.UF2'
Failed uploading: uploading error: exit status 1

Now when I try to connect the raspberry while pressing the BOOTSEL it doesn't appear anymore in my PC. The icon momentary show in the system tray but then it disappears and the RPI-RP2 is not showing in my devices and drives. I also noticed that in "Device Manager > Universal Serial Bus controllers" when I connect the raspberry there's an unknown one that says "Unknown USB device (device descriptor request failed)".

Since I cannot access the RPI-RP2 then I can't use flash_nuke.uf2.

I've tried to see what the AI suggested because I'm new in this... but it says that "the Pico’s USB flash system crashed", leaving the USB descriptors in a bad state.

Is there a solution?

marc_s
760k186 gold badges1.4k silver badges1.5k bronze badges
asked Nov 19 at 2:05
1
  • There is a debug probe for Raspberry Pi Pico. (Official Manual) I think you would need that to reprogram your pico. Commented Nov 19 at 2:35

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.