Clear all

Error Compiling with Arduino IDE 2.0.3

17 Posts
4 Users
Kids Taxi
Active Member
Joined: 4 years ago
Posts: 13



The picoprobe allows you to use a Pi to examine the contents of the pico/w I don't know if it will allow you to change the main program to main-1 so that you can access it from Thonny as I haven't used it.

( )


The Flash Nuke gives a clean slate but wipes everything fron the flash including files that have not been saved.

( )


I've also kept digging and found some more info:

you can also rename main to main-1 by running the following
script from a terminal witout nuking it !!
I presume you change pyboard to pico or picow

rshell --quiet --port /dev/ttyACM0 cp /pyboard/ /pyboard/
rshell --quiet --port /dev/ttyACM0 rm /pyboard/


the forum post here ( )
provides more info on the above and a uf2 solution written by MicroPython

I thought that you would also be interested in the following; as Arduino have officially stopped supporting the pico/w Raspberry Pi are busy sorting out a C/C++ repository and an SDK, it looks as though I'll have to properly learn the two languages instead of one.

Non Sibi Sed Omnibus

Illustrious Member
Joined: 3 years ago
Posts: 5524

@kids-taxi fyi @codecage i don't know how to reply to you. What you say may be correct, I have no idea, but I doubt it has anything to do with the OP's problem. This is a classic python 2 to 3 migration that tripped up a lot of people a while back. Most of us have been free of it for a while now through the passage of time. The OP sounds like he still has some flotsam and whatever maybe that is tripping him up.

Your comment about PICOW and RaspberryPi being no longer supported is not something I have heard about and if I was a betting man would bet it isn't true.

Your comments around 'main' are I think related to python the programming language. That has little to nothing to do with the python executable utilities used by the GNU development system.  I am opting out of this topic as I think we have general agreement on the underlying reasons, the solution is however still to be found and I fear it's more than a simple python3 reinstall. Good luck.


Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting

Page 2 / 2