Notifications
Clear all

Error Compiling with Arduino IDE 2.0.3

17 Posts
4 Users
1 Likes
1,110 Views
Kids Taxi
(@kids-taxi)
Member
Joined: 4 years ago
Posts: 13
 

@zander 

Hi,

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.

( https://datasheets.raspberrypi.com/soft/picoprobe.uf2 )

 

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

( https://datasheets.raspberrypi.com/soft/flash_nuke.uf2 )

 

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/main.py /pyboard/main-1.py
rshell --quiet --port /dev/ttyACM0 rm /pyboard/main.py

 

the forum post here ( https://forums.raspberrypi.com/viewtopic.php?f=146&t=305432#p1827358 )
provides more info on the above and a uf2 solution written by MicroPython

MicroPython_RenameMainDotPy.uf2.zip
https://forums.raspberrypi.com/download/file.php?id=45227

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


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7074
 

@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.

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Page 2 / 2