Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4741

Troubleshooting • Re: PicoW: Code refused to work

$
0
0
are you really running MicroPython from Thonny, or the local Python interpreter?
Hi, thanks for answering. And, quite honestly, for making you spend time here. The problem has been solved.

I am indeed running MicroPython, I made sure of that. When clicking ctrl D, it tells me that it is running Micropython:

Code:

MicroPython v1.19.1-88-g74e33e714 on 2022-06-30; Raspberry Pi Pico W with RP2040
The problem was the firmware. I apparently was installing an incorrect version of it, one which was not up to the task for the network library that I was using. I used this firmware, taken in turn from the Raspberry Pi's documentation website.

What I think that happened is the following: after storing the code as "main.py", I accidentally blocked the Pico from being recognizable by Thonny. Then I used a file that deleted everything from the Pico, including the firmware. And then I installed the wrong firmware.

So the fix is having the most recent firmware available

Again, sorry for making you spend your time here. Thanks for answering,

MicroAnalog

Statistics: Posted by MicroAnalog — Thu Jun 06, 2024 2:53 am



Viewing all articles
Browse latest Browse all 4741

Trending Articles