Impossible to upload file to pico from arduino ide 2.0

When i'm trying to flash the uf2 file to the pico, i get this error:
Le croquis utilise 89824 octets (4%) de l'espace de stockage de programmes. Le maximum est de 2097152 octets.
Les variables globales utilisent 42824 octets (15%) de mémoire dynamique, ce qui laisse 227512 octets pour les variables locales. Le maximum est de 270336 octets.
.....................
Failed uploading: uploading error: exit status 1.

Im using the right board plugin for th pico as you can see:
195395257-9e23ba77-a68d-448a-b3dd-58843005fc60

To reproduce

1)Connect the pico to the PC
2) Open this example file:

/**********************************************************************

  • Filename : Blink
  • Description : Make an led blinking.
  • Auther : www.freenove.com
  • Modification: 2021/10/13
    **********************************************************************/
    #define LED_BUILTIN 25

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

3)Verify the sketch
4)Upload the sketch to the pico and get the error

Expected behavior

The pico LED should blink after upload

Arduino IDE version

Version: 2.0.1-nightly-20221012Date: 2022-10-12T03:46:53.546Z Version CLI: git-snapshot [c8ff0425]Copyright © 2022 Arduino SA

Operating system

Linux

Operating system version

ubuntu 22.04

Additional context

Exported UF2 Binaries from IDE 2.0 stable and nightly just work OOTB by dragging them on the pico

Hi @integrated-circuit. Please give this a try:

  1. Disconnect the USB cable from your computer if it is already connected.
  2. Hold down the button on the board marked "BOOTSEL".
  3. Connect the board to your computer using a USB cable.
  4. Release the button on the board marked "BOOTSEL".
  5. Try uploading to the board again.

There will not be a port for the board when it is in this "USB Mass Storage Mode", but that is OK because no serial port is needed to upload to the Pico.

Thx its fixed, I forgot to run the post-install script for the RP2040 plugin

I'm glad it is working now. Thanks for taking the time to post an update with your solution!

Regards,
Per

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