<?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[esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number]]></title><description><![CDATA[<p dir="auto">I am having problems with the IDE 2.0 uploading to a M5STACK Paper. I researched this error and found one fix. The first fix said to download the Nightly Build so I did.</p>
<p dir="auto">The error is:</p>
<p dir="auto">esptool write_flash: error: argument : Address "{upload.erase_cmd}" must be a number</p>
]]></description><link>https://community.m5stack.com/topic/4665/esptool-write_flash-error-argument-address-upload-erase_cmd-must-be-a-number</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 16:13:42 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4665.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Oct 2022 00:27:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Sun, 23 Oct 2022 14:08:53 GMT]]></title><description><![CDATA[<p dir="auto">The esp32 bord defs in Arduino are controlled by espressif and it looks like they broke a few things.</p>
]]></description><link>https://community.m5stack.com/post/19087</link><guid isPermaLink="true">https://community.m5stack.com/post/19087</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 23 Oct 2022 14:08:53 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Sun, 23 Oct 2022 14:01:08 GMT]]></title><description><![CDATA[<p dir="auto">Thank you!</p>
<p dir="auto">I was getting this on my M5StickC-Plus, on the 10th/Oct/2022, with all the latest board/library updates.</p>
<p dir="auto">I hope everyone else can find this thread!</p>
<p dir="auto">For me the file I had to add those lines to was:</p>
<p dir="auto">C:\Users[login name]\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.5\boards.txt</p>
]]></description><link>https://community.m5stack.com/post/19086</link><guid isPermaLink="true">https://community.m5stack.com/post/19086</guid><dc:creator><![CDATA[SarahC]]></dc:creator><pubDate>Sun, 23 Oct 2022 14:01:08 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Tue, 11 Oct 2022 22:02:10 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/2327">@veryalien</a>,</p>
<p dir="auto">For the record, I was getting this error with the M5StickC PLUS and your suggested edits to boards.txt fixed the problem.  Thanks!  Note that for whatever reason, I was not getting this error with an M5Atom.</p>
<p dir="auto">Do you know how/when M5Stack does new releases that incorporates bug fixes such as these?  Do we need to somehow notify them or do they regularly read the community forum?  I'm aware of at least one library bug that someone has found a fix for in the forum.  In that case, the user did a pull request on GitHub and the fix was pulled into the repository, but a new version of the library has not been released.</p>
]]></description><link>https://community.m5stack.com/post/18937</link><guid isPermaLink="true">https://community.m5stack.com/post/18937</guid><dc:creator><![CDATA[makingwaves]]></dc:creator><pubDate>Tue, 11 Oct 2022 22:02:10 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Sat, 08 Oct 2022 10:58:58 GMT]]></title><description><![CDATA[<p dir="auto">This problem seems to be caused by the esp32 2.0.5 update.</p>
<p dir="auto">I don't think M5Stack are to blame, this was not a mandatory setting before.</p>
<p dir="auto">After this update was installed I had the same problem with some of my M5Stack boards, but not all of them. A menu setting for erasing flash before upload or not must now be set. It seems that this menu setting must be sent to esptool, if this is not provided then esptool fails with the Address "{upload.erase_cmd}" must be a number error<br />
There is a simple fix, if you can find your hidden arduino boards.txt file.<br />
The path to the file will be different on Windows, Linux and OSX.<br />
You need to add the following to boards.txt for ALL types of M5Stack/M5Stamp boards and then uploads should work again:</p>
<p dir="auto">&lt;board_name&gt;.menu.EraseFlash.none=Disabled<br />
&lt;board_name&gt;.menu.EraseFlash.none.upload.erase_cmd=<br />
&lt;board_name&gt;.menu.EraseFlash.all=Enabled<br />
&lt;board_name&gt;.menu.EraseFlash.all.upload.erase_cmd=-e</p>
<p dir="auto">Replace &lt;board_name&gt; with the correct name for each type of board in the complete list. You can see what the name should be in the section for each M5Stack board.</p>
<p dir="auto">After editing and saving boards.txt in the correct place, you need to restart the arduino IDE. You will then see in the Tools menu Erase All Flash Before Sketch Upload: Disabled/Enabled. This is the missing required setting for esptool.</p>
<p dir="auto">Make a copy of your boards.txt before you make any edits so you can recover from any incorrect changes.</p>
<p dir="auto">Good Luck!</p>
]]></description><link>https://community.m5stack.com/post/18906</link><guid isPermaLink="true">https://community.m5stack.com/post/18906</guid><dc:creator><![CDATA[veryalien]]></dc:creator><pubDate>Sat, 08 Oct 2022 10:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Sat, 08 Oct 2022 01:56:35 GMT]]></title><description><![CDATA[<p dir="auto">Me too. Thanks for sharing or I would go insane.<br />
I have seen this in other M5Stack Products<br />
There is a user felmue that helps keep things straight, maybe he can help?</p>
]]></description><link>https://community.m5stack.com/post/18898</link><guid isPermaLink="true">https://community.m5stack.com/post/18898</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sat, 08 Oct 2022 01:56:35 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Fri, 07 Oct 2022 21:36:16 GMT]]></title><description><![CDATA[<p dir="auto">Dear M5: please repair the board information for the M5Stick-C-plus.  See errors above.</p>
<p dir="auto">other users: switching to the M5Stick-C (no "-plus") platform allowed me to upload new sketches to the device.<br />
<img src="/assets/uploads/files/1665178522870-3412d667-e1c3-43ad-88dd-97a04a107d2d-image.png" alt="0_1665178518532_3412d667-e1c3-43ad-88dd-97a04a107d2d-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/18893</link><guid isPermaLink="true">https://community.m5stack.com/post/18893</guid><dc:creator><![CDATA[M5_Tinker]]></dc:creator><pubDate>Fri, 07 Oct 2022 21:36:16 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Fri, 07 Oct 2022 21:15:15 GMT]]></title><description><![CDATA[<p dir="auto">the file does actually show the "-e".  What <em>should</em> it be?<br />
~/.arduino15/packages/m5stack/hardware/esp32/2.0.5/boards.txt</p>
<blockquote>
<p dir="auto">m5stick-c.menu.EraseFlash.none=Disabled<br />
m5stick-c.menu.EraseFlash.none.upload.erase_cmd=<br />
m5stick-c.menu.EraseFlash.all=Enabled<br />
m5stick-c.menu.EraseFlash.all.upload.erase_cmd=<strong>-e</strong></p>
</blockquote>
]]></description><link>https://community.m5stack.com/post/18892</link><guid isPermaLink="true">https://community.m5stack.com/post/18892</guid><dc:creator><![CDATA[M5_Tinker]]></dc:creator><pubDate>Fri, 07 Oct 2022 21:15:15 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Fri, 07 Oct 2022 05:52:15 GMT]]></title><description><![CDATA[<p dir="auto">same error.<br />
Brand new user (just received my M5StickC 7 hours ago)<br />
My development environment is freshly minted (3 hours ago) on a USB drive plugged into a Raspberry Pi4B.<br />
New OS. New install of Arduino IDE 1.8.19.<br />
Add platform "M5Stack Arduino" and Library "M5StackCPlus" by following <a href="https://docs.m5stack.com/en/quick_start/m5stickc/arduino" target="_blank" rel="noopener noreferrer nofollow ugc">these instructions</a>.</p>
<p dir="auto"><strong>the sketch is very basic</strong><br />
'''<br />
void setup() { }</p>
<p dir="auto">void loop() { }<br />
'''</p>
<p dir="auto"><strong>the error is:</strong><br />
usage: esptool write_flash [-h] [--erase-all]<br />
[--flash_freq {keep,40m,26m,20m,80m}]<br />
[--flash_mode {keep,qio,qout,dio,dout}]<br />
[--flash_size FLASH_SIZE]<br />
[--spi-connection SPI_CONNECTION] [--no-progress]<br />
[--verify] [--encrypt]<br />
[--encrypt-files &lt;address&gt; &lt;filename&gt; [&lt;address&gt; &lt;filename&gt; ...&rsqb;&rsqb;<br />
[--ignore-flash-encryption-efuse-setting]<br />
[--compress | --no-compress]<br />
&lt;address&gt; &lt;filename&gt; [&lt;address&gt; &lt;filename&gt; ...]<br />
esptool write_flash: error: argument &lt;address&gt; &lt;filename&gt;: Address "{upload.erase_cmd}" must be a number<br />
esptool write_flash: error: argument &lt;address&gt; &lt;filename&gt;: Address "{upload.erase_cmd}" must be a number</p>
<p dir="auto"><strong>Please assist with getting my shiny new device to work.</strong></p>
]]></description><link>https://community.m5stack.com/post/18877</link><guid isPermaLink="true">https://community.m5stack.com/post/18877</guid><dc:creator><![CDATA[M5_Tinker]]></dc:creator><pubDate>Fri, 07 Oct 2022 05:52:15 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Tue, 04 Oct 2022 18:19:33 GMT]]></title><description><![CDATA[<p dir="auto">I would not know where to set that is but since the same error occurs in the Windows version of the IDE I am thinking that it isn't a problem with the MAC. Also this only fails with the Paper device if I select the Core 2 I can program the Paper just fine however the external I2C doesn't work so IDK if this is because I said the Paper was a Core 2 or not.</p>
]]></description><link>https://community.m5stack.com/post/18818</link><guid isPermaLink="true">https://community.m5stack.com/post/18818</guid><dc:creator><![CDATA[ispybadguys]]></dc:creator><pubDate>Tue, 04 Oct 2022 18:19:33 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Tue, 04 Oct 2022 16:05:55 GMT]]></title><description><![CDATA[<p dir="auto">Have you set the environment variable to point to python 3?</p>
<p dir="auto">Also the new OS X is a pain!</p>
]]></description><link>https://community.m5stack.com/post/18816</link><guid isPermaLink="true">https://community.m5stack.com/post/18816</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 04 Oct 2022 16:05:55 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Tue, 04 Oct 2022 15:56:26 GMT]]></title><description><![CDATA[<p dir="auto">Thanks. I did this and also dug out an old windows laptop running Arduino 1.8.19. I downloaded the M5Stack boards file using <a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json" target="_blank" rel="noopener noreferrer nofollow ugc">https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json</a> and then installed the M5STACK libraries and the M5EPD library from GitHub. This setup gives the very same error.</p>
]]></description><link>https://community.m5stack.com/post/18815</link><guid isPermaLink="true">https://community.m5stack.com/post/18815</guid><dc:creator><![CDATA[ispybadguys]]></dc:creator><pubDate>Tue, 04 Oct 2022 15:56:26 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Tue, 04 Oct 2022 14:50:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I'm on an M1 iMac, Monterey.<br />
Goto <a href="http://Pthyon.org" target="_blank" rel="noopener noreferrer nofollow ugc">Pthyon.org</a> and follow the easy instructions and install Python3.x.x, painlessly.<br />
hope this helps</p>
]]></description><link>https://community.m5stack.com/post/18812</link><guid isPermaLink="true">https://community.m5stack.com/post/18812</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Tue, 04 Oct 2022 14:50:55 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Tue, 04 Oct 2022 12:20:27 GMT]]></title><description><![CDATA[<p dir="auto">Your are correct. I have a Mac running Monterey 12.3.1. python --version returns 2.7.14. Xcode is 13.4.1</p>
]]></description><link>https://community.m5stack.com/post/18810</link><guid isPermaLink="true">https://community.m5stack.com/post/18810</guid><dc:creator><![CDATA[ispybadguys]]></dc:creator><pubDate>Tue, 04 Oct 2022 12:20:27 GMT</pubDate></item><item><title><![CDATA[Reply to esptool write_flash: error: argument : Address &quot;{upload.erase_cmd}&quot; must be a number on Tue, 04 Oct 2022 11:04:12 GMT]]></title><description><![CDATA[<p dir="auto">Have you updated Xcode and python (assuming you are on a Mac)</p>
]]></description><link>https://community.m5stack.com/post/18807</link><guid isPermaLink="true">https://community.m5stack.com/post/18807</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Tue, 04 Oct 2022 11:04:12 GMT</pubDate></item></channel></rss>