<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Read Program back from Core?]]></title><description><![CDATA[<p dir="auto">I have a StickC Plus with a working program on it, but i lost the source file.<br />
Is there a way to read a blockly/python script from a Core device?</p>
<ol>
<li>
<p dir="auto">I assume the python source code is on the Core Device and being run through a MicroPython interpreter.<br />
Is that correct, or is the Soruce being compiled down to something else before it is downloaded to the Core?</p>
</li>
<li>
<p dir="auto">Assuming 1. is correct, is there a way to read back the python script?<br />
(appart from reading it back directly from the flash chip with a programmer and extracting from there)</p>
</li>
</ol>
]]></description><link>https://community.m5stack.com/topic/7007/read-program-back-from-core</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 19:30:05 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7007.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Nov 2024 10:12:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Read Program back from Core? on Sun, 29 Dec 2024 14:51:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Thanks. Yes, i am aware of StickC/plus/2plus, should be on the right one, will check again.</p>
<p dir="auto">As for loading a script from device, i found the solution. It behaves just like what i was expecting:</p>
<p dir="auto"><img src="/assets/uploads/files/1735482395313-e6dabbda-0f77-4204-b1d7-9f728bf337dc-image.png" alt="e6dabbda-0f77-4204-b1d7-9f728bf337dc-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What's not entirely clear to me yet is how scripts are saved on the device. I mean, will it be every new project name? Easy to test, but i did not yet...</p>
<p dir="auto">If anybody from M5Stack is reading here:<br />
The Fact that i did not find the solution and then 3 People answering without finding the correct answer is a strong indicator that the UI is not self-explanatory enough.<br />
It's not logical that there's a LOAD Icon (load from PC), with the LOAD (from device) is hidden in a different icon's submenu.<br />
I think the LOAD Button should lead to an options-dialogue "-from host / -fromdevice"</p>
]]></description><link>https://community.m5stack.com/post/27634</link><guid isPermaLink="true">https://community.m5stack.com/post/27634</guid><dc:creator><![CDATA[sirtet]]></dc:creator><pubDate>Sun, 29 Dec 2024 14:51:03 GMT</pubDate></item><item><title><![CDATA[Reply to Read Program back from Core? on Sat, 28 Dec 2024 09:04:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sirtet" aria-label="Profile: sirtet">@<bdi>sirtet</bdi></a> Are you using the correct Stick C UIFlow firmware?<br />
There are 3 different StickC revisions. the blank screen suggest that you have the wrong version loaded.</p>
]]></description><link>https://community.m5stack.com/post/27612</link><guid isPermaLink="true">https://community.m5stack.com/post/27612</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 28 Dec 2024 09:04:29 GMT</pubDate></item><item><title><![CDATA[Reply to Read Program back from Core? on Fri, 27 Dec 2024 16:47:34 GMT]]></title><description><![CDATA[<p dir="auto">Thanks.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kuriko" aria-label="Profile: kuriko">@<bdi>kuriko</bdi></a>, i did not get UiFlow2 to work yet on my StickCPlus (With Firmware 1.13.8). Trying the UiFlow2 Firmware, i only get a blank screen.<br />
But i see i can connect to my Stick in UIFlow1.0 too.<br />
I get to the REPL interface, with os.getcwd() i can see that i am in /flash.<br />
Yes. <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a> is what i was looking for.<br />
But i have some questions:<br />
If i use the APPList from the boot menu, some .py scripts are listed, temp, main, test and <a href="http://MyCustomCode.py" target="_blank" rel="noopener noreferrer nofollow ugc">MyCustomCode.py</a><br />
in /flash, there is main and temp.<br />
Then, there's a DIR named apps. In it, there's again <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a> and <a href="http://MyCustomCode.py" target="_blank" rel="noopener noreferrer nofollow ugc">MyCustomCode.py</a>.<br />
What's the logic here, how did all the scripts end up where they are?<br />
I guess the "current" one is always copied to <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow ugc">main.py</a>, but what's with <a href="http://temp.py" target="_blank" rel="noopener noreferrer nofollow ugc">temp.py</a> and <a href="http://test.py" target="_blank" rel="noopener noreferrer nofollow ugc">test.py</a>? I am not aware of ever using these names.<br />
Maybe there's a help doc. on the topic that i should read?</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cognitive5525" aria-label="Profile: Cognitive5525">@<bdi>Cognitive5525</bdi></a>, with Thonny, i don't see how to get to the file i need. I guess i would need to connect to my Stick first, but don't see anything about it in the menus...</p>
]]></description><link>https://community.m5stack.com/post/27603</link><guid isPermaLink="true">https://community.m5stack.com/post/27603</guid><dc:creator><![CDATA[sirtet]]></dc:creator><pubDate>Fri, 27 Dec 2024 16:47:34 GMT</pubDate></item><item><title><![CDATA[Reply to Read Program back from Core? on Fri, 29 Nov 2024 10:14:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sirtet" aria-label="Profile: sirtet">@<bdi>sirtet</bdi></a> You can also use <a href="https://thonny.org/" target="_blank" rel="noopener noreferrer nofollow ugc">Thonny</a></p>
]]></description><link>https://community.m5stack.com/post/27223</link><guid isPermaLink="true">https://community.m5stack.com/post/27223</guid><dc:creator><![CDATA[Cognitive5525]]></dc:creator><pubDate>Fri, 29 Nov 2024 10:14:37 GMT</pubDate></item><item><title><![CDATA[Reply to Read Program back from Core? on Fri, 29 Nov 2024 09:23:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sirtet" aria-label="Profile: sirtet">@<bdi>sirtet</bdi></a><br />
Yes, the code is in the Core's /flash/main.py, and can be read directly using the UiFlow2.0 terminal.</p>
]]></description><link>https://community.m5stack.com/post/27218</link><guid isPermaLink="true">https://community.m5stack.com/post/27218</guid><dc:creator><![CDATA[kuriko]]></dc:creator><pubDate>Fri, 29 Nov 2024 09:23:09 GMT</pubDate></item></channel></rss>