mjrx
Posts: 6
Joined: Thu Feb 15, 2024 11:06 pm

Loading Micropython on to Raspberry pi pico

Thu Feb 22, 2024 12:45 am

Can anyone tell me why, when I try to load Micropython to my raspberry pi pico from Thonny, I always get the same error message:
MicropythonLoadWarning.jpg
MicropythonLoadWarning.jpg (21.9 KiB) Viewed 286 times
I have 4 different boards, always the same thing.

User avatar
neilgl
Posts: 7827
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: Loading Micropython on to Raspberry pi pico

Thu Feb 22, 2024 11:27 am

Not sure, I just tried it on a Pico W - all fine, also fine on a Pico. This is the screen I used from Thonny:
Attachments
Thonny install MicroPython.jpg
Thonny install MicroPython.jpg (74.98 KiB) Viewed 247 times

hippy
Posts: 16120
Joined: Fri Sep 09, 2011 10:34 pm
Location: UK

Re: Loading Micropython on to Raspberry pi pico

Thu Feb 22, 2024 2:37 pm

Thonny keeps an on-line record of what the latest firmware is, which I believe is at the URL mentioned in the pop-up of the OP -

https://raw.githubusercontent.com/thonny/thonny/master/data/rpi-pico-firmware.json

That appears to be as I would expect it and the link to the the '.uf2' file appears to be correct and available. That isn't however the latest release so that could be the issue. My own tools are confused about the existence of any 1.22.1 version, the development branch latest being 1.22.0-161, aka 1.23.0-preview-161.

But neilgl's Thonny identified 1.22.1 as latest release even though not specified in the linked file above. There's this which does detail 1.22.1 for the Pico and Pico W but I have no idea how the two files are used -

https://raw.githubusercontent.com/thonny/thonny/master/data/micropython-variants-uf2.json

The error pop-up doesn't detail what it couldn't figure out so it may be worth asking the author.

An alternative to loading firrmware through Thonny is to download the latest release or latest versions of the '.uf2' files directly from MicroPython and copying them to the Pico or Pico W in BOOTSEL mode -

Pico : https://micropython.org/download/rp2-pico
Pico-W : https://micropython.org/download/rp2-pico-w

mjrx
Posts: 6
Joined: Thu Feb 15, 2024 11:06 pm

Re: Loading Micropython on to Raspberry pi pico

Thu Feb 22, 2024 5:47 pm

Thanks for that.

Is there a place in Thonny I can specify that path? I couldn't find anything. It used to be so convenient to be able to load from thonny. I tried to do the drag the .uf2, it worked for a plain pico but didn't work for the pico W. The dialog during load looked like it was copying the RPI_PICO_W-20240222-v1.22.2.uf2 just fine, but the pico-w didn't respond to any REPL commands in Thonny.

User avatar
neilgl
Posts: 7827
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: Loading Micropython on to Raspberry pi pico

Thu Feb 22, 2024 5:48 pm

Looks like a temporary lack of internet will cause similar errors? (Thonny 4.0.2):
Attachments
Thonny Install variants no internet.jpg
Thonny Install variants no internet.jpg (98.41 KiB) Viewed 193 times

mjrx
Posts: 6
Joined: Thu Feb 15, 2024 11:06 pm

Re: Loading Micropython on to Raspberry pi pico

Thu Feb 22, 2024 9:26 pm

But where is the string "https://raw.githubusercontent.com/thonn ... mware.json" stored in Thonny? Is it hardcoded into Thonny, and not in some init file somewhere?

User avatar
neilgl
Posts: 7827
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: Loading Micropython on to Raspberry pi pico

Thu Feb 22, 2024 10:36 pm

Not sure - maybe look at the source code on github?

Return to “MicroPython”