<?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[pycom-fwtool-cli flash command using .tar.gz vs .elf file]]></title><description><![CDATA[<p dir="auto">I took a look at this -&gt; Re: <a href="/topic/5375/using-pycom-fwtool-cli">Using pycom-fwtool-cli</a>, but still have questions.</p>
<p dir="auto">What am I missing where flashing with this tool where the repo publishes .elf files, but this tool takes either a .tar.gz or a binary file &amp; partition combo?</p>
<p dir="auto">FYI here's the output of my pycom-fwtool-cli which is different (newer?) than the documentation.</p>
<pre><code>user@host# pycom-fwtool-cli -p /dev/ttyACM0 flash -f LoPy4-application.elf-0x00000.bin -h
usage: pycom-fwtool-cli flash [-h] [-t TAR] [-f FILE] [--secureboot]
                              [-p PARTITION]

optional arguments:
  -h, --help            show this help message and exit
  -t TAR, --tar TAR     perform the upgrade from a tar[.gz] file
  -f FILE, --file FILE  flash binary file to a single partition
  --secureboot          Flash Encrypted binaries if avialable
  -p PARTITION, --partition PARTITION
                        The partition to flash (all, fs, nvs, factory,
                        secureboot, bootloader, partitions, otadata, fs1,
                        ota_0, config)
</code></pre>
<p dir="auto">I've figured out the <a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow">esptool.py</a> elf2image part ... but what partition do I need to use to get the latest firmware on here.</p>
<p dir="auto">Hopefully I'm missing something, and making this too difficult?  Thoughts?</p>
<pre><code>esptool.py elf2image LoPy4-application.elf 
</code></pre>
<p dir="auto">I've been trying various things, so I'm not sure the state of my flash is ok, namely I get this on the console:</p>
<pre><code>rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57
</code></pre>
]]></description><link>https://forum.pycom.io/topic/6509/pycom-fwtool-cli-flash-command-using-tar-gz-vs-elf-file</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 21:13:33 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/6509.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Oct 2020 16:30:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to pycom-fwtool-cli flash command using .tar.gz vs .elf file on Fri, 30 Oct 2020 16:30:24 GMT]]></title><description><![CDATA[<p dir="auto">I took a look at this -&gt; Re: <a href="/topic/5375/using-pycom-fwtool-cli">Using pycom-fwtool-cli</a>, but still have questions.</p>
<p dir="auto">What am I missing where flashing with this tool where the repo publishes .elf files, but this tool takes either a .tar.gz or a binary file &amp; partition combo?</p>
<p dir="auto">FYI here's the output of my pycom-fwtool-cli which is different (newer?) than the documentation.</p>
<pre><code>user@host# pycom-fwtool-cli -p /dev/ttyACM0 flash -f LoPy4-application.elf-0x00000.bin -h
usage: pycom-fwtool-cli flash [-h] [-t TAR] [-f FILE] [--secureboot]
                              [-p PARTITION]

optional arguments:
  -h, --help            show this help message and exit
  -t TAR, --tar TAR     perform the upgrade from a tar[.gz] file
  -f FILE, --file FILE  flash binary file to a single partition
  --secureboot          Flash Encrypted binaries if avialable
  -p PARTITION, --partition PARTITION
                        The partition to flash (all, fs, nvs, factory,
                        secureboot, bootloader, partitions, otadata, fs1,
                        ota_0, config)
</code></pre>
<p dir="auto">I've figured out the <a href="http://esptool.py" target="_blank" rel="noopener noreferrer nofollow">esptool.py</a> elf2image part ... but what partition do I need to use to get the latest firmware on here.</p>
<p dir="auto">Hopefully I'm missing something, and making this too difficult?  Thoughts?</p>
<pre><code>esptool.py elf2image LoPy4-application.elf 
</code></pre>
<p dir="auto">I've been trying various things, so I'm not sure the state of my flash is ok, namely I get this on the console:</p>
<pre><code>rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
flash read err, 1000
ets_main.c 371 
ets Jun  8 2016 00:22:57
</code></pre>
]]></description><link>https://forum.pycom.io/post/35290</link><guid isPermaLink="true">https://forum.pycom.io/post/35290</guid><dc:creator><![CDATA[Eric Arnoldy]]></dc:creator><pubDate>Fri, 30 Oct 2020 16:30:24 GMT</pubDate></item></channel></rss>