1The Pico is not in BOOTSEL mode
Normal running mode is not enough for a first upload.
- Unplug the Pico.
- Hold the BOOTSEL button, plug the cable in, then let go.
- A drive called RPI-RP2 should appear. Upload again.
A Raspberry Pi Pico takes a new program when it starts in BOOTSEL mode, where it shows up as a drive called RPI-RP2. The upload tool found no Pico in that mode.
No accessible RP2040 devices in BOOTSEL mode were found.
Failed uploading: uploading error: exit status 1The board is not in BOOTSEL mode, the cable carries no data, or the computer does not let the tool reach the device.
Normal running mode is not enough for a first upload.
A charge-only cable lights the board and shows no drive.
Without a udev rule, a normal user cannot reach the device.
A .uf2 file can simply be copied onto the RPI-RP2 drive, with no upload tool, which sidesteps this error. Mokxi's "Download for your board (.uf2)" gives you that file for a Pico, a Pico W or a XIAO.
Run the sketch in Mokxi before you blame the board. If it builds and runs there, the code is fine and the problem is the connection to the real board.
Run the sketch here before you blame the board. If it builds and runs in Mokxi, the code is fine and the fault is the connection to the real board. Mokxi never uploads in a simulation, so it cannot raise this error itself.
void setup() {
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
Serial.println("blink ready");
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(500);
digitalWrite(LED_BUILTIN, LOW);
delay(500);
}A button on the Pico that makes it start as a USB drive, so you can copy a program onto it.
A program file the Pico accepts by drag and drop. Copy it onto the RPI-RP2 drive and the Pico restarts with it.
Yes. Hold BOOTSEL, plug it in, and it appears as RPI-RP2 too.