# RP2040 Connect - Failed uploading - rp2040load exit code 1

**URL:** <https://forum.arduino.cc/t/rp2040-connect-failed-uploading-rp2040load-exit-code-1/1301790>\
**Category:** Nano RP2040 Connect\
**Created:** [September 15, 2024, 8:17am UTC](https://forum.arduino.cc/t/rp2040-connect-failed-uploading-rp2040load-exit-code-1/1301790 "2024-09-15T08:17:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gusto2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/gusto2/32/1038615_2.png) [@gusto2](https://forum.arduino.cc/u/gusto2)\
**Post date:** [September 15, 2024, 8:17am UTC](https://forum.arduino.cc/t/rp2040-connect-failed-uploading-rp2040load-exit-code-1/1301790/1 "2024-09-15T08:17:38Z")

</div>

Hello,

Using Arduino IDE 2.3.1 on Windows, trying to upload a sketch to RP2040 Connect fails with

> Failed uploading: uploading error: exit status 1

Additional information:

- Connecting the board I see a new COM port pops up (COM5 for me)
- Before the upload itself, the board gets to the bootloader mode (a new mass storage device appears and the COM5 port disappears)
- When I manually copy the ULF file , then it looks working, but that is not the purpose

```arduino
copy C:\Users\XXXXX\AppData\Local\Temp\arduino\sketches\AE6262F131744376FC7423329A623B7C\Blink.ino.uf2 d:\

```

Where I see **the issue is using the rp2040load utility, which returns exit code 1 without any logs or explanation**

```arduino
"C:\Users\XXXXX\AppData\Local\Arduino15\packages\arduino\tools\rp2040tools\1.0.6/rp2040load" -v -D "C:\Users\XXXXX\AppData\Local\Temp\arduino\sketches\AE6262F131744376FC7423329A623B7C/Blink.ino.elf"
rp2040load 1.0.6 - compiled with go1.16.2
.....................
Failed uploading: uploading error: exit status 1

```

The same result I get when I invoke the rp2040load command from a cmd terminal

```arduino
C:\Users\XXXXX>"C:\Users\XXXXX\AppData\Local\Arduino15\packages\arduino\tools\rp2040tools\1.0.6\rp2040load" -y -v -D "C:\Users\XXXXX\AppData\Local\Temp\arduino\sketches\F62F8943B2BDFFBF9B9D1DADC98AD85E/PDMSerialPlotter.ino.elf"
rp2040load 1.0.6 - compiled with go1.16.2
.....................

C:\Users\XXXXX>echo %errorlevel%
1

```

Extra information - I checked the rp2040load source code and the tool is invoking following commands:

- elf2uf2
- picotool with different parameters: info, load, reboot

Trying to invoke the `picotool` manually (while in the bootloader mode):

```arduino
C:\Users\XXXXX>C:\Users\XXXXX\AppData\Local\Arduino15\packages\arduino\tools\rp2040tools\1.0.6\picotool.exe info
No accessible RP2040 devices in BOOTSEL mode were found.

but:

Device at bus 1, address 46 appears to be a RP2040 device in BOOTSEL mode, but picotool was unable to connect. **You may need to install a driver**. See "Getting started with Raspberry Pi Pico" for more information

C:\Users\XXXXX>echo %errorlevel%
-7

```

Any idea what driver do I need??

---

<div class="post-metadata">

**Author:** ![gusto2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/gusto2/32/1038615_2.png) [@gusto2](https://forum.arduino.cc/u/gusto2)\
**Post date:** [September 15, 2024, 8:51am UTC](https://forum.arduino.cc/t/rp2040-connect-failed-uploading-rp2040load-exit-code-1/1301790/2 "2024-09-15T08:51:41Z")

</div>

At the end I found the solution, keeping it as an answer as for other people

source: [https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf](https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf)

> If you get an error message `No accessible RP2040/RP2350 devices in BOOTSEL mode were found.` accompanied with a note similar to `Device at bus 1, address 7 appears to be a RP2040 device in BOOTSEL mode, but picotool was unable to connect` indicating that there was a Pico-series device connected then you can run picotool using `sudo`, e.g.
> 
> ```plaintext
> $ sudo picotool info -a
> 
> ```
> 
> If you get this message on Windows you will need to install a driver. Download and run Zadig, select `RP2 Boot (Interface 1)` from the dropdown box and select `WinUSB` as the driver, and click on the "Install Driver" button. Wait for the installation to complete - this may take a few minutes.

So - connect the RP2040Connect board, get to the bootloader mode, run the Zadig tool to install the WinUSB driver, restart the board

Now the tooling works from the Arduino IDE too

---

<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:** [March 14, 2025, 8:51am UTC](https://forum.arduino.cc/t/rp2040-connect-failed-uploading-rp2040load-exit-code-1/1301790/3 "2025-03-14T08:51:50Z")

</div>

Closed on March 14, 2025, 8:51am UTC

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