<?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[LoPy doesn&#x27;t boot from sd card]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">On the pycom github page it says if you have a sd card in you lopy, it will boot from it. <a href="https://github.com/pycom/pycom-micropython/blob/master/docs/pyboard/general.rst" target="_blank" rel="noopener noreferrer nofollow">https://github.com/pycom/pycom-micropython/blob/master/docs/pyboard/general.rst</a></p>
<p dir="auto">I have the <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> and the <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a> on the sd card. But still it isn't booting.<br />
I have formatted the sd card to fat32.</p>
<p dir="auto">When i copied the <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a> and <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> it gives me a message that it will be copied without any settings. Might this be the problem? or am i doing something else wrong?</p>
<p dir="auto">Kind regards.</p>
]]></description><link>https://forum.pycom.io/topic/701/lopy-doesn-t-boot-from-sd-card</link><generator>RSS for Node</generator><lastBuildDate>Mon, 18 May 2026 07:02:21 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/701.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 20 Feb 2017 14:15:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to LoPy doesn&#x27;t boot from sd card on Mon, 20 Feb 2017 14:15:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">On the pycom github page it says if you have a sd card in you lopy, it will boot from it. <a href="https://github.com/pycom/pycom-micropython/blob/master/docs/pyboard/general.rst" target="_blank" rel="noopener noreferrer nofollow">https://github.com/pycom/pycom-micropython/blob/master/docs/pyboard/general.rst</a></p>
<p dir="auto">I have the <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> and the <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a> on the sd card. But still it isn't booting.<br />
I have formatted the sd card to fat32.</p>
<p dir="auto">When i copied the <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a> and <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> it gives me a message that it will be copied without any settings. Might this be the problem? or am i doing something else wrong?</p>
<p dir="auto">Kind regards.</p>
]]></description><link>https://forum.pycom.io/post/4347</link><guid isPermaLink="true">https://forum.pycom.io/post/4347</guid><dc:creator><![CDATA[mmarkvoort]]></dc:creator><pubDate>Mon, 20 Feb 2017 14:15:01 GMT</pubDate></item><item><title><![CDATA[Reply to LoPy doesn&#x27;t boot from sd card on Mon, 20 Feb 2017 14:57:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/842">@mmarkvoort</a></p>
<p dir="auto">I suppose this is not valid for pycom only pyboard</p>
<p dir="auto">You must mount sd card self, e.g.</p>
<p dir="auto"><a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> in /flash</p>
<pre><code>from machine import SD

try:
    sd = SD()
    os.mount(sd, '/sd')
    execfile('/sd/boot.py')
except:
    sd = None
    
</code></pre>
<p dir="auto">in <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a> in /flash</p>
<pre><code>if (sd&lt;&gt;None):
   execfile('/sd/main.py')
</code></pre>
<p dir="auto">but maybe i am wrong and sd should be mounted automatically<br />
then someone fix me</p>
]]></description><link>https://forum.pycom.io/post/4348</link><guid isPermaLink="true">https://forum.pycom.io/post/4348</guid><dc:creator><![CDATA[livius]]></dc:creator><pubDate>Mon, 20 Feb 2017 14:57:55 GMT</pubDate></item><item><title><![CDATA[Reply to LoPy doesn&#x27;t boot from sd card on Mon, 20 Feb 2017 15:16:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/199">@livius</a></p>
<p dir="auto">Your suggestion is working, thanks for that!<br />
I have added the code in the <a href="http://main.py" target="_blank" rel="noopener noreferrer nofollow">main.py</a> in /flash. In my <a href="http://boot.py" target="_blank" rel="noopener noreferrer nofollow">boot.py</a> in /flash I mount my sd card like you said, but not with the execfile('/sd/boot.py'). When the main of /flash is executed, the main of /sd will automatically be executed.</p>
<p dir="auto">This is working now, but I still think this isn't like it supposed to be.<br />
Maybe any one else can help?</p>
]]></description><link>https://forum.pycom.io/post/4349</link><guid isPermaLink="true">https://forum.pycom.io/post/4349</guid><dc:creator><![CDATA[mmarkvoort]]></dc:creator><pubDate>Mon, 20 Feb 2017 15:16:21 GMT</pubDate></item><item><title><![CDATA[Reply to LoPy doesn&#x27;t boot from sd card on Tue, 21 Feb 2017 13:53:09 GMT]]></title><description><![CDATA[<p dir="auto">My LoPy can detect de SD card and i can run from the SD card.<br />
But I still can't boot from it.</p>
<p dir="auto">Anyone who managed to boot from the SD card?</p>
]]></description><link>https://forum.pycom.io/post/4399</link><guid isPermaLink="true">https://forum.pycom.io/post/4399</guid><dc:creator><![CDATA[mmarkvoort]]></dc:creator><pubDate>Tue, 21 Feb 2017 13:53:09 GMT</pubDate></item><item><title><![CDATA[Reply to LoPy doesn&#x27;t boot from sd card on Tue, 21 Feb 2017 14:44:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/842">@mmarkvoort</a><br />
As livius explained the instructions you found are for the original pyboard - not the Pycom boards! The pyboard has a SD card slot on the board itself so the pins are already allocated and dedicated to it.</p>
<p dir="auto">On the Pycom boards the SD card is an optional add-on, you might have used the pins to attach other devices which could get confused or even damaged if the LoPy tries to communicate with them as if they were an SD card.</p>
<p dir="auto">With this in mind I don't think automatically booting from the SD card will be possible, at least not in a general way that is safe and without establishing some sort of resource discovery/plug'n'play communication protocol between the LoPy and Expansion boards (something nice but maybe be a bit outside the scope of these boards)</p>
]]></description><link>https://forum.pycom.io/post/4400</link><guid isPermaLink="true">https://forum.pycom.io/post/4400</guid><dc:creator><![CDATA[jmarcelino]]></dc:creator><pubDate>Tue, 21 Feb 2017 14:44:56 GMT</pubDate></item><item><title><![CDATA[Reply to LoPy doesn&#x27;t boot from sd card on Tue, 21 Feb 2017 14:26:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/212">@jmarcelino</a></p>
<p dir="auto">Thanks for the clear explanation.</p>
<p dir="auto">I asked again because i read somewhere that it was possible, but i can't find that page anymore. But maybe that was the original pyboard too.</p>
<p dir="auto">Well, then I will continue without :)</p>
]]></description><link>https://forum.pycom.io/post/4401</link><guid isPermaLink="true">https://forum.pycom.io/post/4401</guid><dc:creator><![CDATA[mmarkvoort]]></dc:creator><pubDate>Tue, 21 Feb 2017 14:26:13 GMT</pubDate></item></channel></rss>