Raspberry Pico connection problem

RP2040 based microcontroller boards running MicroPython.
Target audience: MicroPython users with an RP2040 boards.
This does not include conventional Linux-based Raspberry Pi boards.
Post Reply
matijaz74
Posts: 3
Joined: Mon Apr 26, 2021 5:50 pm

Raspberry Pico connection problem

Post by matijaz74 » Mon Apr 26, 2021 6:15 pm

Hi! I've been working on the Pico connection all day. First in Windows 10 in Thonny. Now in RaspberryOS also in Thonny. Let me error.

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/thonny/workbench.py", line 1708, in event_generate
    handler(event)
  File "/usr/lib/python3/dist-packages/thonny/shell.py", line 433, in _handle_program_output
    self._update_visible_io(None)
  File "/usr/lib/python3/dist-packages/thonny/shell.py", line 512, in _update_visible_io
    self._apply_io_event(data, stream_name)
  File "/usr/lib/python3/dist-packages/thonny/shell.py", line 555, in _apply_io_event
    self.active_extra_tags.pop()
IndexError: pop from empty list
I connected the Raspberry Pico to the computer as described. You must first hold down the BOOTSEL key and then download the uf2 file. However, an error still occurs. :roll:
Thank you for your help and response.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Raspberry Pico connection problem

Post by Roberthh » Mon Apr 26, 2021 6:20 pm

When you have downloaded the .uf2 file once, there is not need to do that again, unless you want to change tht firmware. What happens if you connect the device without pushing the bootsel button. Then it should be in normal operation mode.

matijaz74
Posts: 3
Joined: Mon Apr 26, 2021 5:50 pm

Re: Raspberry Pico connection problem

Post by matijaz74 » Mon Apr 26, 2021 7:39 pm

This occurs during normal startup. Then I installed a new uf2 file.
I also uploaded a new file rp2-pico-20210418-v1.15.uf2 but without success.
But I got on this page. https://www.micropython.org/download/rp2-pico/.
I don't know what else to do. :(
Thank you for your help and response.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Raspberry Pico connection problem

Post by Roberthh » Tue Apr 27, 2021 6:14 am

To be sure, that the Pico works fine, try using a simple terminal emulator like Putty (Windows) or picocom (Raspi).

matijaz74
Posts: 3
Joined: Mon Apr 26, 2021 5:50 pm

Re: Raspberry Pico connection problem

Post by matijaz74 » Tue Apr 27, 2021 7:57 am

Great! I connected to the picocom and noticed that it was running in the second core of the program in the background. I stopped him. Now it works great through Thonny. Thanks!

Post Reply