<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Error Compiling with Arduino IDE 2.0.3 - Raspberry Pi				            </title>
            <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 12 Apr 2026 19:26:12 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/paged/2/#post-36432</link>
                        <pubDate>Tue, 20 Dec 2022 22:52:12 +0000</pubDate>
                        <description><![CDATA[@kids-taxi fyi @codecage i don&#039;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&#039;s problem. This is a classic python 2 to...]]></description>
                        <content:encoded><![CDATA[<p>@kids-taxi fyi @<span>codecage </span>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.</p>
<p>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.</p>
<p>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.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/paged/2/#post-36432</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/paged/2/#post-36428</link>
                        <pubDate>Tue, 20 Dec 2022 21:36:11 +0000</pubDate>
                        <description><![CDATA[@zander 
Hi,
The picoprobe allows you to use a Pi to examine the contents of the pico/w I don&#039;t know if it will allow you to change the main program to main-1 so that you can access it fro...]]></description>
                        <content:encoded><![CDATA[<p>@zander </p>
<p>Hi,</p>
<p>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.</p>
<p>( https://datasheets.raspberrypi.com/soft/picoprobe.uf2 )</p>
<p> </p>
<p>The Flash Nuke gives a clean slate but wipes everything fron the flash including files that have not been saved.</p>
<p>( https://datasheets.raspberrypi.com/soft/flash_nuke.uf2 )</p>
<p> </p>
<p>I've also kept digging and found some more info:</p>
<p>you can also rename main to main-1 by running the following<br />script from a terminal witout nuking it !!<br />I presume you change pyboard to pico or picow<br /><br />rshell --quiet --port /dev/ttyACM0 cp /pyboard/main.py /pyboard/main-1.py<br />rshell --quiet --port /dev/ttyACM0 rm /pyboard/main.py</p>
<p> </p>
<p>the forum post here ( https://forums.raspberrypi.com/viewtopic.php?f=146&amp;t=305432#p1827358 )<br />provides more info on the above and a uf2 solution written by MicroPython<br /><br />MicroPython_RenameMainDotPy.uf2.zip<br />https://forums.raspberrypi.com/download/file.php?id=45227</p>
<p>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.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Kids Taxi</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/paged/2/#post-36428</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36421</link>
                        <pubDate>Tue, 20 Dec 2022 19:17:07 +0000</pubDate>
                        <description><![CDATA[@kids-taxi What will they do?]]></description>
                        <content:encoded><![CDATA[@kids-taxi What will they do?]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36421</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36420</link>
                        <pubDate>Tue, 20 Dec 2022 19:10:47 +0000</pubDate>
                        <description><![CDATA[I forgot to say that you might want to use PicoProbe and FlashNuke as a last resort]]></description>
                        <content:encoded><![CDATA[<p>I forgot to say that you might want to use PicoProbe and FlashNuke as a last resort</p>
<p>https://datasheets.raspberrypi.com/soft/picoprobe.uf2</p>
<p><br />https://datasheets.raspberrypi.com/soft/flash_nuke.uf2</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Kids Taxi</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36420</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36415</link>
                        <pubDate>Tue, 20 Dec 2022 13:51:10 +0000</pubDate>
                        <description><![CDATA[@kids-taxi I am not certain from your reply, but have you done the one time initial action so that the PICO acts the same as an arduino? Can you now upload a sketch and it works the same as ...]]></description>
                        <content:encoded><![CDATA[@kids-taxi I am not certain from your reply, but have you done the one time initial action so that the PICO acts the same as an arduino? Can you now upload a sketch and it works the same as an arduino?]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36415</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36412</link>
                        <pubDate>Tue, 20 Dec 2022 01:48:10 +0000</pubDate>
                        <description><![CDATA[@codecage
Hi codecage,
I’m going to apologize to Ron now for mentioning a ‘pure Python fix’ as a test to make sure that the WiFi chip is ok but as I’ve already posted it you only have to r...]]></description>
                        <content:encoded><![CDATA[<p>@codecage</p>
<p>Hi codecage,</p>
<p style="line-height: 100%;margin-bottom: 0cm">I’m going to apologize to Ron now for mentioning a ‘pure Python fix’ as a test to make sure that the WiFi chip is ok but as I’ve already posted it you only have to read it link is below. Note that it was a very late night fix for the part1 which continued later the same day. It will get you connected if the chip is ok.</p>
<p style="line-height: 100%;margin-bottom: 0cm">https://forum.dronebotworkshop.com/2022-videos/pico-w-with-arduino-ide/paged/2/#post-36207</p>
<p style="line-height: 100%;margin-bottom: 0cm">As for the second part of this post, Ive sorted out the Board manager and installed the correct one on the new 2.0.3 IDE Arduino system. I was using a PicoW that I’ve been using with Pimoroni’s Display_2 for about a month and that has been used to check that the pure Python fix actually worked. <br /><br />Even so the New Arduino IDE had issues connecting to the PicoW. When the USB’s are connected and the correct board selected it does not open a port. It took a while scratching my head before I realized that it takes over a minute to cycle up to 37 (counter in the bottom left border) to get a connection sorted out. Then I could not get the ‘Blink’ sketch to upload.</p>
<p style="line-height: 100%;margin-bottom: 0cm">After several attempts at both problems I noticed that the compile action was creating a “uf2” file, it was creating both the support function and the program it was going to run in that file. I then understood why it was taking so long to produce such a short file, it was compiling many files not just that one.</p>
<p style="line-height: 100%;margin-bottom: 0cm">As it was providing everything to make it run I used the boot select to allow the IDE to write to the PicoW, instant led blinking.</p>
<p style="line-height: 100%;margin-bottom: 0cm">I used the same process for the Web Scanning program with no problems.</p>
<p style="line-height: 100%;margin-bottom: 0cm">Just so you have everything I know about thsi (in the unlikely case that these don’t work) there are 2 issues being addressed on GitHub in the MicroPython forum (with one of these also being discussed on the RPi forum Pico section.) One to do with using pin 25 incorrectly and the other to do with forcing a key to be provided to access the web.)</p>
<p style="line-height: 100%;margin-bottom: 0cm">I hope this helps</p>
<p style="line-height: 100%;margin-bottom: 0cm">Good Luck</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Kids Taxi</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36412</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36407</link>
                        <pubDate>Mon, 19 Dec 2022 17:39:28 +0000</pubDate>
                        <description><![CDATA[@codecage Understood. I recall I encountered one of those python errors a while ago and it took me a long time to unwind it. A re-install didn&#039;t do it I had to use alias, rename, maybe a few...]]></description>
                        <content:encoded><![CDATA[@codecage Understood. I recall I encountered one of those python errors a while ago and it took me a long time to unwind it. A re-install didn't do it I had to use alias, rename, maybe a few other tricks until I stumbled on the right solution. So very sorry I don't remember what it was, but it was definitely a python issue not a library issue. Good luck. All the best to you and yours!]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36407</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36406</link>
                        <pubDate>Mon, 19 Dec 2022 17:35:42 +0000</pubDate>
                        <description><![CDATA[@codecage Do you have verbose enabled in your prefs? If not then what you didn&#039;t notice is the following during a compile of a PICOW sketch. There are many python tools used by the gnu build...]]></description>
                        <content:encoded><![CDATA[<p>@codecage Do you have verbose enabled in your prefs? If not then what you didn't notice is the following during a compile of a PICOW sketch. There are many python tools used by the gnu build system. A search on python in the Arduino15 folder yields 4,702 results.</p>
5962
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36406</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36405</link>
                        <pubDate>Mon, 19 Dec 2022 17:26:24 +0000</pubDate>
                        <description><![CDATA[@zander 
Thanks for the advice, much appreciated.  I have reinstalled the IDE and Python and still get the error on my laptop.  I&#039;m thinking it has to be a library problem.  I have an Intel...]]></description>
                        <content:encoded><![CDATA[<p>@zander </p>
<p>Thanks for the advice, much appreciated.  I have reinstalled the IDE and Python and still get the error on my laptop.  I'm thinking it has to be a library problem.  I have an Intel NUC that I have not used for the PICO W yet so I'm going to do a little experimenting on it, but it might have to wait until after the New Year with all that is going on around my household.</p>
<p>All the best to you and yours for the Holidays!</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>codecage</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36405</guid>
                    </item>
				                    <item>
                        <title>RE: Error Compiling with Arduino IDE 2.0.3</title>
                        <link>https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36403</link>
                        <pubDate>Mon, 19 Dec 2022 17:15:51 +0000</pubDate>
                        <description><![CDATA[@codecage I think the errors you showed were python related. My knowledge is sketchy but I have read that there were python issues when they went from 2.x to 3.x. It did not go well but now ...]]></description>
                        <content:encoded><![CDATA[<p>@codecage I think the errors you showed were python related. My knowledge is sketchy but I have read that there were python issues when they went from 2.x to 3.x. It did not go well but now is (mostly) settled. You may have some remnants of that and I do not know the solution other than maybe make sure your python environment is correct and at 3.x.</p>
<p>YES, python tools are used even in the C++ environment by the IDE. Try re-installing the IDE, but I have a hunch that may not fix your issue. If not, a little googling may help and maybe a fresh python 3 install will do the job. Good luck.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/raspberry-pi/">Raspberry Pi</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/raspberry-pi/error-compiling-with-arduino-ide-2-0-3/#post-36403</guid>
                    </item>
							        </channel>
        </rss>
		