12

I am trying to connect to Raspberry Pi pico using Thonny. I am using Ubuntu 20.04.

Giving Error

Couldn't find the device automatically. 
Check the connection (making sure the device is not in bootloader mode) or choose
"Configure interpreter" in the interpreter menu (bottom-right corner of the window)
to select specific port or another interpreter.

Tried to install firmware

In Tools>Options>Install or update firmware I pushed BOOTSEL button, but it is not changing anything.

enter image description here

PSKP
  • 328
  • 1
  • 2
  • 7

7 Answers7

7

Press and hold BOOTSEL button while you connecting it to USB of your computer. Release it after connected. Copy UF2 file to newly mounted PRI-PR2 storage. It will restart, ready to go. According to Getting Started:

  1. Download the MicroPython UF2 file...

  2. Push and hold the BOOTSEL button and plug your Pico into the USB port of your Raspberry Pi or other computer. Release the BOOTSEL
    button after your Pico is connected.

  3. It will mount as a Mass Storage Device called RPI-RP2.

  4. Drag and drop the MicroPython UF2 file onto the RPI-RP2 volume. Your Pico will reboot. You are now running MicroPython.

Qareke
  • 153
  • 6
  • 1
    I was doing same thing using thonny. Thonny is installing latest firmware to pico. My problem was pico is disconnecting within seconds after pushing BOOTSEL. So I copied files within second. Now it is working fine. Thanks – PSKP Feb 02 '21 at 02:35
  • 1
    My problem was caused by my own stupidity. I seemed to be able to install the files from Thonny ("Done" announced) but unable to connect afterwards. Turns out I had a connection from the Serial app established earlier on which was re-connecting on each Pico re-boot. Hope this helps someone else! Keep safe, guys... – Jonathan Feb 23 '21 at 10:54
4

I tried the above steps, but my pico still won't run micropython.

It randomly disconnected itself, and when it reconnected, windows wasn't able to identify it, and thonny was giving the "couldn't find the device automatically" error. However when thonny was installing micropython, it said it couldn't find a port. Multiple USB cables were used, as well as connecting it to an actual raspberry pi. The rpi just claimed the device was busy, even when i hit the stop/restart button in thonny.

Edit: fixed by using the flash_nuke.uf2

Aidan L
  • 41
  • 2
4

For me it was a permission issue.

sudo usermod -a -G dialout <username>

Did the trick.

antibus
  • 141
  • 1
  • 1
    and that the bootloader option should not be held when placing the pico pi back in , and put the pi into the usb, * before* bringing thonny IDE up – Vass Nov 27 '22 at 00:13
  • This worked for me, but I had to reboot afterwards. Logging out and back in was not sufficient. – salsbury Dec 14 '22 at 06:55
3

Downloaded Thonny installed the program. Then tried to install micropython on the pi. In Thonny I had this error come up. " Downloading 563200 bytes from https://micropython.org/resources/firmware/rp2-pico-20210902-v1.17.uf2 Writing to D:\firmware 100% Waiting for the port... Warning: Could not find port in 10 seconds

Done! "

Tried putting the pi in boot mode and dropped in the flash nuke uf2. The pi resets after I drop it in like it is supposed to but Thonny still cant seem to do find the port.

Marcus
  • 31
  • 1
1

Just to give some more attention to Aiden L's answer: If your Pico really doesn't cooperate, try completely resetting it with flash_nuke.uf2 (file from adafruit.com). This was the only solution that worked for me.

1

I have noticed that when you try to install the Pico's firmware from Options->Interpreter it leads to that issue.

A possible solution which I have found is disconnect the Pico, press BOOTSEL connect it, and choose it from the bottom right corner. A firmware instillation window will appear, and it updates the Pico without any issues.

0

The flash_nuke worked for me. Right after I uploaded main.py and restarted it, lost all ability to communicate on Com4. No reinstalling drivers or removing them helped. Even tried reloading the micropython software.

  • 1
    That answer has already been given. – Chenmunka Mar 12 '23 at 21:40
  • Yup - I do find it helpful to confirm when something specific works when I read comments. With no score yet, I am not allow to reply, or upvote, or anything so this is the only way I could confirm. Thanks though Chenmunka. – Jeffrey Bragdon Mar 13 '23 at 22:06