# Raspberry Pi Pico, Can't Load any Sketch

**URL:** <https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640>\
**Category:** Uploading\
**Created:** [July 2, 2022, 8:03am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640 "2022-07-02T08:03:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Papirrruqui](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Papirrruqui](https://forum.arduino.cc/u/Papirrruqui)\
**Post date:** [July 2, 2022, 8:03am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/1 "2022-07-02T08:03:37Z")

</div>

Hello

I just starting to use the Raspberry Pi Pico, traying with old sketches made for the Arduino boards, then suddenly I couldn't load any sketch any more, on the IDE Menu the Tools -\> Port option was grayed down. I then went to google and try to find a solution, every thing I'd read was pointing to drivers. I thought that after delete every single device related to Raspberry Pi Pico on the Device Manager, and then plug the Pico into the USB port, Windows will load the drivers and configure the Pico by itself. Every thing wend smooth the OS recognize the Raspberry Pi Pico and configured it, or at least that was it say.

I notice on the Device Manager that before uploading the sketch, windows recognize the Pico as "USB Serial Device (COM3)"

 ![Device Manager Before Loading a Sketch](https://europe1.discourse-cdn.com/arduino/original/4X/6/b/d/6bd37528f49b9e6549afc2976f09e8e8d05922e9.jpeg)

But wend the IDE is uploading the sketch, windows opens the Pico MSD on file explorer, and shows a dialog message that is configuring Raspberry Pi Pico, then after It shows other entry with the Pico on (COM4)

 ![Device Manager After Loading a Sketch](https://europe1.discourse-cdn.com/arduino/original/4X/4/8/4/48430955cdb032ecd3d821af803f40b126cec748.jpeg)

and after a while the IDE shows this error

 ![Uploading Error](https://europe1.discourse-cdn.com/arduino/original/4X/4/4/9/449d99cefa67e2e01ac4081f01e3aebc313fa8bc.jpeg)

It sound logical that when the IDE is trying to upload the sketch to COM3 Windows is reconfiguring The Pico as COM4 and therefore the IDE will fail its attempt.

I try other PC and all that doesn't happens, the sketch uploads perfectly and every thing works just right. The Device Manager shows the "RP2 Boot" without a COM port. Below a picture of the Device Manager on other PC.

 ![Other PC After Uploading a Sketch](https://europe1.discourse-cdn.com/arduino/original/4X/8/f/a/8fa7b94e689744bbb95cf9c63f17c079c941c0e6.jpeg)

What I'm doing wrong?  
Which is the right driver I should use?  
How can I fix it?

I will greatly appreciate any help

Carlos

---

<div class="post-metadata">

**Author:** ![anon85221860](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon85221860](https://forum.arduino.cc/u/anon85221860)\
**Post date:** [July 2, 2022, 3:03pm UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/2 "2022-07-02T15:03:37Z")

</div>

"If you find difficulty in uploading code, unplug the board from the USB port and **plug it back in while holding down the BOOTSEL button** on Raspberry Pi Pico."

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [July 2, 2022, 3:51pm UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/3 "2022-07-02T15:51:29Z")

</div>

Disclaimer: I don't know anything about the Pi Pico so not an attempt tp solve your problem. This is just an attempt to clarify some things.

> [@Papirrruqui](#):
>
> It sound logical that when the IDE is trying to upload the sketch to COM3 Windows is reconfiguring The Pico as COM4 and therefore the IDE will fail its attempt.

That's your assumption ;) For most boards (I guess the Pi Pico is not different), the IDE will reset a board to be able to upload to it. On boards like e.g. the Leonardo, this reset will change the com port. The IDE will look for that changed COM port and use that. I'm reasonably sure that the behaviour of the Pi Pico will be similar although it might look for something else that is the result of the reset.

You can observe the behaviour in more detail if you enable verbose output during upload under _file -\> preferences_ in the IDE. If I'm right about the reset for your Pi Pico, you will see a line indicating that the IDE issues a reset on COM3. The full output might reveal to you what actually goes wrong.

---

<div class="post-metadata">

**Author:** ![tepalia02](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tepalia02](https://forum.arduino.cc/u/tepalia02)\
**Post date:** [July 3, 2022, 5:51am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/5 "2022-07-03T05:51:06Z")

</div>

Is any IC of the board getting extremely hot? Hotter than usual?

---

<div class="post-metadata">

**Author:** ![Papirrruqui](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Papirrruqui](https://forum.arduino.cc/u/Papirrruqui)\
**Post date:** [July 3, 2022, 5:59am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/7 "2022-07-03T05:59:35Z")

</div>

Thank runaway\_pancake for your advice.

> [@anon85221860](#):
>
> plug it back in while holding down the BOOTSEL button

But no, it doesn't work that way. It behave just the same. The question is: **Why it don't works on a PC and do it in other? also, in the PC that doesn't work, used to work before?**

Thank sterretje for showing me a new feature of the IDE.

> [@sterretje](#):
>
> You can observe the behaviour in more detail if you enable verbose output during upload

I'd try it using COM3 and COM4, below one of the output:

 ![Error Verbose Upload](https://europe1.discourse-cdn.com/arduino/original/4X/8/a/6/8a629ccaba277a9b171f787046a333595870ec5b.jpeg)

The last 3 lines where printed when trying to open the terminal and changing the BPS rate.

Thank tepalia02

> [@tepalia02](#):
>
> Is any IC of the board getting extremely hot? Hotter than usual?

No. The temperature is quite normal.

---

<div class="post-metadata">

**Author:** ![Papirrruqui](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Papirrruqui](https://forum.arduino.cc/u/Papirrruqui)\
**Post date:** [July 3, 2022, 6:08am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/8 "2022-07-03T06:08:26Z")

</div>

I found that the drivers loaded on both PCs are different

 ![RP2 Boot Working Driver](https://europe1.discourse-cdn.com/arduino/original/4X/2/e/0/2e081c92ba12743fe0f30ea7f7958b32bd679b8c.jpeg)

This is the Driver loaded by the Working PC

 ![RP2 Boot Not Working](https://europe1.discourse-cdn.com/arduino/original/4X/5/2/c/52c089d6d85b41f688592c9420f7af6cc2bb4a47.jpeg)

and this other is the one loaded on the PC that doesn't' load the sketch

I think there is the problem, but I don't know how to fix it

---

<div class="post-metadata">

**Author:** ![Papirrruqui](https://avatars.discourse-cdn.com/v4/letter/p/ed655f/32.png) [@Papirrruqui](https://forum.arduino.cc/u/Papirrruqui)\
**Post date:** [July 10, 2022, 6:04am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/9 "2022-07-10T06:04:01Z")

</div>

After several hours working on the problem finally, I find a solution. At the end, I was able to load any .uf2 files and the Arduino IDE was able to upload sketches every time. Those are the steps I had follow to solve the problem:

Preparation:

Read “Resetting Flash Memory” on the “Raspberry Pi Documentation” and Download flash\_nuke.uf2 from this link

> **[Raspberry Pi Documentation - Raspberry Pi Pico and Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html#resetting-flash-memory)**
>
> The official documentation for Raspberry Pi computers and microcontrollers

Plug the Pico Bootsel pressed, If File Explorer does not open, you will not be able to load the flash\_nuke.uf2 file into memory, do not worry, latter you will have the opportunity to do so, but if it does, just drag and drop this file into the RPI-RP2 volume and wait until the Pico’s onboard LED flashes 3 times.

Loading this file into the RaspberryPi Pico will clear the Flash Memory. After done, the Pico will always open the File Explorer with the RPI-RP2 volume when plugged, independently of the Bootsel button state. That behavior will remain until you upload an .uf2 file into memory, from then on, the Pico will work as usual.

Unplug the Pico.

Now we are going to delete some devices from the Device Manager, that way we will have a clean start, next time we plug the Pico, Windows will load the drivers to handle it.

Delete all Pico related devices on the Device Manager

Right click on Windows Start, and select Device Manager

On Device Manager  
View-\> Devices by container  
View-\> Show hidden devices

Delete Raspberry Pi Pico Devices

![Solution Device Manager 1 RPi Pico Devices](https://europe1.discourse-cdn.com/arduino/original/4X/a/e/9/ae9ea84438bc5b7ab37bdf80d9049aa7f888ddc6.jpeg)

Double click to open the container, and then you will see all the devices in that container, go into each Pico related container and delete devices one by one.

Right click on every Pico device leaving "USB Composite Device" and “Volume” until the end. When Uninstalling "USB Composite Device" or “Volume” other devices in the container also disappear, we want to delete driver software if they exist, so, delete them as a final step.

If the Uninstall Device dialog windows show a check box (Delete the driver software for this device), mark it and Confirm by clicking on Uninstall, if not, just Confirm by clicking on Uninstall.

Example: in my case, from the picture above: Pico, RaspberryPi Pico, RP2 Boot.

Double click on Pico to open the container, and then you will see all the devices in that container.  
Right click on "USB Serial Device (COM8)" and select "Uninstall device", if the Uninstall Device dialog windows show a check box, mark it and Confirm by clicking on Uninstall, if not just click on uninstall.

After deleting all Pico related Devices, go back into Action-\>Scan for hardware changes, to ensure no Containers related to Raspberry pi Pico still exist.

After clean up, we will upload a fresh copy of the Arduino Drivers.

Run Arduino IDE, go to Boards Manager, if you find “Arduino Mbed OS RP2040 Boards” installed, remove it, if not continue with next step.

Install “Arduino Mbed OS RP2040 Boards”.

Plug the Pico Bootsel pressed this time, wait until windows notification “Device ready ‘RP2Boot’ is set up and ready to go.”, If Windows open the File Explorer showing the RPI-RP2 (USB Mass Storage Device), it is a good time to reset the Pico Flash memory. Drag and Drop flash\_nuke.uf2 file, as explained at the beginning.

Go back to Device Manager, select from the menu Action-\>Scan for hardware changes.

On the RP2 Boot container, right click the device that start with “RP2 Boot” and select properties. As showed below.

![Solution RP2 Boot Properties](https://europe1.discourse-cdn.com/arduino/original/4X/e/6/6/e66f85c2fea4184af07a69cc7bb5b7ac5e159117.jpeg)

On the Properties window select the Driver tab, click on the “Update Driver” option  
On the next window, select “Browse my computer for drivers”.

Write “C:\Windows\System32\drivers” on the location search path, mark the Include subfolders

![Solution Search Path for Drivers](https://europe1.discourse-cdn.com/arduino/original/4X/2/a/f/2af8c01ecd3c518b951ae2c47b380db7eadaf312.jpeg)

Click on “Let me pick from a list of available drives…”  
At this point, you may have one of the following scenarios:  
1- Select your device’s type from the list below.  
2- Select the driver you want to install for this hardware.

Continued in next post:

In the first just double click over any of the options from the list, will bring you the second scenario, then, select “Nano RP2040 Connect Picoboot IF”, click next

![Solution Select Picoboot Driver](https://europe1.discourse-cdn.com/arduino/original/4X/1/9/f/19ff440bb6efa6e754545fa512c327fa0e7dcfc7.jpeg)

Plug the Pico Bootsel released  
Wait until windows notification “Device ready ‘RaspberryPi Pico’ is set up and ready to go.”

![Solution Device is ready 'RaspberryPi Pico'](https://europe1.discourse-cdn.com/arduino/original/4X/8/a/7/8a706dfa181b7c69bdbe25a78eaf6e5515c45076.jpeg)

You can go into Windows Settings-\>Devices and see the Raspberry Pi Pico under Other devices  
Unplug the Pico

Now you have fixed the problem

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [July 10, 2022, 6:41am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/10 "2022-07-10T06:41:50Z")

</div>

Thanks for the extensive feedback.

---

<div class="post-metadata">

**Author:** ![anon85221860](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon85221860](https://forum.arduino.cc/u/anon85221860)\
**Post date:** [July 10, 2022, 1:33pm UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/11 "2022-07-10T13:33:50Z")

</div>

What a long, strange trip that must have been.

---

<div class="post-metadata">

**Author:** ![franzbischoff](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/franzbischoff/32/278386_2.png) [@franzbischoff](https://forum.arduino.cc/u/franzbischoff)\
**Post date:** [August 11, 2022, 11:01pm UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/12 "2022-08-11T23:01:10Z")

</div>

Saved the day!

---

<div class="post-metadata">

**Author:** ![Power\_Broker](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/power_broker/32/226104_2.png) [@Power\_Broker](https://forum.arduino.cc/u/Power_Broker)\
**Post date:** [February 2, 2023, 10:34pm UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/13 "2023-02-02T22:34:33Z")

</div>

I followed all steps in order, but my pico always pops up a window's file explorer window and doesn't show a COM port in the devices manager. When I look in the devices manager, I see RP2 Boot under "Universal Serial Bus devices", but no COM port. I made sure to load the flash\_nuke.uf2 file and updated the driver as specified, but it's not working.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Power\_Broker](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/power_broker/32/226104_2.png) [@Power\_Broker](https://forum.arduino.cc/u/Power_Broker)\
**Post date:** [February 2, 2023, 10:47pm UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/14 "2023-02-02T22:47:30Z")

</div>

It seems [this fix](https://github.com/raspberrypi/pico-feedback/issues/118) did the trick. However, the issue is that even though I have a COM port for the pico, when I plug in the device (while pressing BOOTSEL) and then try to upload a basic sketch, I get the following:

```cpp
Sketch uses 89569 bytes (4%) of program storage space. Maximum is 2097152 bytes.
Global variables use 42824 bytes (15%) of dynamic memory, leaving 227512 bytes for local variables. Maximum is 270336 bytes.
.....................
An error occurred while uploading the sketch
Error while setting serial port parameters: 115,200 N 8 1

```

Am I doing something wrong? Here's the sketch:

```plaintext
void setup()
{
  Serial.begin(115200);
}

void loop()
{
  Serial.println("hi");
  delay(100);
}

```

---

<div class="post-metadata">

**Author:** ![andreafavero71](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/andreafavero71/32/967736_2.png) [@andreafavero71](https://forum.arduino.cc/u/andreafavero71)\
**Post date:** [May 21, 2023, 8:58am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/15 "2023-05-21T08:58:03Z")

</div>

I've experienced this problem too, and I've just made a forum account to contribute to this topic.  
I've followed (twice) the detailed process indicated at [post #9](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/9), yet the outcome was not as expected:

1. Windows didn't show "Device is ready"
2. IDE didn't show any connected board

At this point, I tried the suggestion [https://forum.arduino.cc/t/raspberry-pi-pico-does-not-show-its-port-in-ide/850432:](https://forum.arduino.cc/t/raspberry-pi-pico-does-not-show-its-port-in-ide/850432:) just **try to upload your sketch**.  
In my case the sketch did upload straight away, and the window "Device is ready" finally appeared on the screen.

P.S. I'm new to Pico, and the system worked for a couple of day simply fine; first time the board stopped working I did check it was still working via Thonny with microPython by connecting to the same PC. This makes me doubting which tool and language i should use.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [November 17, 2023, 8:58am UTC](https://forum.arduino.cc/t/raspberry-pi-pico-cant-load-any-sketch/1008640/16 "2023-11-17T08:58:10Z")

</div>

Closed on November 17, 2023, 8:58am UTC

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