<?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[[SOLVED] LoPy Firmware Update Failed]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">The problem</p>
<ul>
<li>Firmware Update tool always failing to update firmware</li>
</ul>
<p dir="auto">Information:</p>
<ul>
<li>Board: LoPy</li>
<li>Expansion board v2.1A</li>
</ul>
<p dir="auto">Reproduce:<br />
I downloaded the Unix version of the update tool in the <a href="https://docs.pycom.io/chapter/gettingstarted/installation/firmwaretool.html" target="_blank" rel="noopener noreferrer nofollow">official link</a>, then I untared it with:</p>
<pre><code>$ tar zxvf pycom_firmware_update_1.1.6.b0.tar.gz 
pyupgrade/README
pyupgrade/bin/
pyupgrade/bin/pypic.py
pyupgrade/bin/updater.py
pyupgrade/bin/esptool.py
pyupgrade/fwupdater/
pyupgrade/lopyupdate.py
pyupgrade/spinner.gif
pyupgrade/update

$ cd pyupgrade/
</code></pre>
<p dir="auto">Once there I have 2 options to run the terminal embedded update program or the GUI. I try both with the following comands (according to the tool I wanted to try)</p>
<pre><code>$ ./update
$ python2 lopyupdate.py
</code></pre>
<p dir="auto">Both of them throw the same error:<br />
&quot;The upgrade failed, please check the connection and try the steps again&quot;</p>
<p dir="auto">So I thought that the problem may be in the hardware setup. My set up is:<br />
<img src="https://drive.google.com/uc?export=download&amp;id=11JbPLxFMLWoD6lWTlw9WnGolBuj0xSPu" alt="Image" class="img-responsive img-markdown" /></p>
<p dir="auto">So all the jumpers are connected and I also connected G23 with GND and hit Reset button before the upload. When I plug it, my linux system translates the connection to the serial port &quot;/dev/ttyUSB0&quot;.</p>
<p dir="auto">To check that everything is working fine I issue:</p>
<pre><code>$ sudo minicom -D /dev/ttyUSB0 -b 115200
Welcome to minicom 2.7.1

OPCIONES: I18n 
Compilado en Apr 20 2017, 07:07:53.
Port /dev/ttyUSB0, 13:12:19

Presione CTRL-A Z para obtener ayuda sobre teclas especiales

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
</code></pre>
<p dir="auto">So that means that the hardware set up looks fine. So what is the problem?</p>
<p dir="auto">Hope you can help me,</p>
<p dir="auto">Regards,</p>
<p dir="auto">Javier</p>
]]></description><link>https://forum.pycom.io/topic/2441/solved-lopy-firmware-update-failed</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 02:27:53 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2441.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Jan 2018 12:40:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 17:24:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">The problem</p>
<ul>
<li>Firmware Update tool always failing to update firmware</li>
</ul>
<p dir="auto">Information:</p>
<ul>
<li>Board: LoPy</li>
<li>Expansion board v2.1A</li>
</ul>
<p dir="auto">Reproduce:<br />
I downloaded the Unix version of the update tool in the <a href="https://docs.pycom.io/chapter/gettingstarted/installation/firmwaretool.html" target="_blank" rel="noopener noreferrer nofollow">official link</a>, then I untared it with:</p>
<pre><code>$ tar zxvf pycom_firmware_update_1.1.6.b0.tar.gz 
pyupgrade/README
pyupgrade/bin/
pyupgrade/bin/pypic.py
pyupgrade/bin/updater.py
pyupgrade/bin/esptool.py
pyupgrade/fwupdater/
pyupgrade/lopyupdate.py
pyupgrade/spinner.gif
pyupgrade/update

$ cd pyupgrade/
</code></pre>
<p dir="auto">Once there I have 2 options to run the terminal embedded update program or the GUI. I try both with the following comands (according to the tool I wanted to try)</p>
<pre><code>$ ./update
$ python2 lopyupdate.py
</code></pre>
<p dir="auto">Both of them throw the same error:<br />
&quot;The upgrade failed, please check the connection and try the steps again&quot;</p>
<p dir="auto">So I thought that the problem may be in the hardware setup. My set up is:<br />
<img src="https://drive.google.com/uc?export=download&amp;id=11JbPLxFMLWoD6lWTlw9WnGolBuj0xSPu" alt="Image" class="img-responsive img-markdown" /></p>
<p dir="auto">So all the jumpers are connected and I also connected G23 with GND and hit Reset button before the upload. When I plug it, my linux system translates the connection to the serial port &quot;/dev/ttyUSB0&quot;.</p>
<p dir="auto">To check that everything is working fine I issue:</p>
<pre><code>$ sudo minicom -D /dev/ttyUSB0 -b 115200
Welcome to minicom 2.7.1

OPCIONES: I18n 
Compilado en Apr 20 2017, 07:07:53.
Port /dev/ttyUSB0, 13:12:19

Presione CTRL-A Z para obtener ayuda sobre teclas especiales

ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
</code></pre>
<p dir="auto">So that means that the hardware set up looks fine. So what is the problem?</p>
<p dir="auto">Hope you can help me,</p>
<p dir="auto">Regards,</p>
<p dir="auto">Javier</p>
]]></description><link>https://forum.pycom.io/post/14400</link><guid isPermaLink="true">https://forum.pycom.io/post/14400</guid><dc:creator><![CDATA[JVGD]]></dc:creator><pubDate>Fri, 12 Jan 2018 17:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 12:43:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2229">@jvgd</a> Your jumper is going to 5V.  It is supposed to go the GND.  Also never connect to the 5V pin.  The LoPy IO's are not 5V tolerant.</p>
]]></description><link>https://forum.pycom.io/post/14401</link><guid isPermaLink="true">https://forum.pycom.io/post/14401</guid><dc:creator><![CDATA[ssmith]]></dc:creator><pubDate>Fri, 12 Jan 2018 12:43:42 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 13:01:29 GMT]]></title><description><![CDATA[<p dir="auto">Dear  <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1083">@ssmith</a>,</p>
<p dir="auto">Not, the jumper is not connected to Vin, although the picture may be missleading because of the angle I took it. The pins 23 and GND are connected. May this picture be more enlightening.<br />
<img src="https://drive.google.com/uc?export=download&amp;id=1g_N0rmRZNlny4n2p3qpHvtG24naeaEIb" alt="alt text" class="img-responsive img-markdown" /></p>
<p dir="auto">PD: Why cant I reply to a post before 10 min after I posted?? Make no sense, I wanted to reply to you immediately since you were very kind answering me very quickly</p>
<p dir="auto">Regards,</p>
]]></description><link>https://forum.pycom.io/post/14405</link><guid isPermaLink="true">https://forum.pycom.io/post/14405</guid><dc:creator><![CDATA[JVGD]]></dc:creator><pubDate>Fri, 12 Jan 2018 13:01:29 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 13:16:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2229">@jvgd</a> said in <a href="/post/14405">LoPy Firmware Update Failed</a>:</p>
<blockquote>
<p dir="auto">PD: Why cant I reply to a post before 10 min after I posted?? Make no sense, I wanted to reply to you immediately since you were very kind answering me very quickly</p>
</blockquote>
<p dir="auto">This shall help againt spammers. You have to earn 10 points to reduce the time between your posts. Look at the end of your post, you just earned 1 point ;)</p>
]]></description><link>https://forum.pycom.io/post/14409</link><guid isPermaLink="true">https://forum.pycom.io/post/14409</guid><dc:creator><![CDATA[crumble]]></dc:creator><pubDate>Fri, 12 Jan 2018 13:16:01 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 13:20:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2229">@JVGD</a>  If you have a terminal program open it will fail because it can't talk to the board.  You might also have to press the reset button before running the update.</p>
]]></description><link>https://forum.pycom.io/post/14411</link><guid isPermaLink="true">https://forum.pycom.io/post/14411</guid><dc:creator><![CDATA[ssmith]]></dc:creator><pubDate>Fri, 12 Jan 2018 13:20:48 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 13:26:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1083">@ssmith</a>, I am getting confused, I know the LoPy works at 3.3V, but I do not know what jumper you are meaning.</p>
<p dir="auto">Do you mean the wire I have placed between the 4th pin at the left (G23) and the 2nd pin at the rigth (GND)?</p>
<p dir="auto">You can see in the picture the metal connector hits the GND connector hole, so it should be connected, in principle, to the GND ground (unless I am missing something)</p>
<p dir="auto">Do you mean this one?  Or one of the jumpers at the left in the board, if so which of the following ones?:</p>
<ul>
<li>TX</li>
<li>TRS</li>
<li>RX</li>
<li>CTS</li>
<li>BAT</li>
<li>LED</li>
<li>CHG</li>
</ul>
<p dir="auto">Thanks for your help,</p>
<p dir="auto">Regards,</p>
<p dir="auto">Javier</p>
]]></description><link>https://forum.pycom.io/post/14413</link><guid isPermaLink="true">https://forum.pycom.io/post/14413</guid><dc:creator><![CDATA[JVGD]]></dc:creator><pubDate>Fri, 12 Jan 2018 13:26:28 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 13:30:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/2229">@jvgd</a> Your jumper is fine.  I was just checking that you closed the terminal program before you run the update since it uses the uart.  You can only have one connection to the LoPy at a time.</p>
]]></description><link>https://forum.pycom.io/post/14415</link><guid isPermaLink="true">https://forum.pycom.io/post/14415</guid><dc:creator><![CDATA[ssmith]]></dc:creator><pubDate>Fri, 12 Jan 2018 13:30:18 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 14:28:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/1083">@ssmith</a>, as you mentioned I closed all the programs (including the terminal) that could be opening the serial port in order to leave free the connection for the updater tool to connect.</p>
<p dir="auto">Sorry for the delay, I was at lunch</p>
<p dir="auto">Regards,</p>
]]></description><link>https://forum.pycom.io/post/14418</link><guid isPermaLink="true">https://forum.pycom.io/post/14418</guid><dc:creator><![CDATA[JVGD]]></dc:creator><pubDate>Fri, 12 Jan 2018 14:28:04 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 14:51:15 GMT]]></title><description><![CDATA[<p dir="auto">Please run <code>sudo usermod -a -G dialout $USER</code> and log out or restart the PC.</p>
<p dir="auto">Do this on all accounts you want to use.</p>
]]></description><link>https://forum.pycom.io/post/14419</link><guid isPermaLink="true">https://forum.pycom.io/post/14419</guid><dc:creator><![CDATA[Xykon]]></dc:creator><pubDate>Fri, 12 Jan 2018 14:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] LoPy Firmware Update Failed on Fri, 12 Jan 2018 15:18:21 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your insight <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/69">@xykon</a>, I read your command and it came up to my mind. I wasn't using &quot;sudo&quot; and either I have a special group for handling serial connections in this computer.</p>
<p dir="auto">So you gave me the solution, I didn't add a dialout group but I just used sudo to run the app.</p>
<p dir="auto">Running one of the tools with sudo made the trick:</p>
<pre><code>$ sudo ./update
</code></pre>
<p dir="auto">Thank you again for your help. I will mark this thread as solved (if I can).</p>
<p dir="auto">Regards and have a great friday!</p>
<p dir="auto">Javier</p>
]]></description><link>https://forum.pycom.io/post/14420</link><guid isPermaLink="true">https://forum.pycom.io/post/14420</guid><dc:creator><![CDATA[JVGD]]></dc:creator><pubDate>Fri, 12 Jan 2018 15:18:21 GMT</pubDate></item></channel></rss>