ESP32 unable to erase flash #13025
-
Hello all, I would like some assistance in flashing micropython to an esp32 I use the following code to erase the esp32 while holding the boot key: Does anyone have a clue as to what I’m doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
The Thonny IDE gets some bad press on this site but it mostly does a no tears, menu driven job of flashing an esp32 with the latest upython. Just sayin'. |
Beta Was this translation helpful? Give feedback.
-
I got this same message: What solved it for me was: pip install intelhex |
Beta Was this translation helpful? Give feedback.
-
Thanks, ill give it a shot.
…On Mon, Nov 20, 2023, 4:02 AM MrTinkerman ***@***.***> wrote:
I got this same message:
"ModuleNotFoundError: No module named 'intelhex'"
What solved it for me was: pip install intelhex
(https://pypi.org/project/intelhex/) <https://pypi.org/project/intelhex/>
—
Reply to this email directly, view it on GitHub
<#13025 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL2RYF2OKJQHQKEG2PFLGBLYFMMDVAVCNFSM6AAAAAA7SBBAF2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMMJXGA3DA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
This works for me in Windows 11 with the same board...
${port} is your COM port For example: |
Beta Was this translation helpful? Give feedback.
-
It works! Thanks
…On Mon, Nov 20, 2023, 8:54 AM Dave ***@***.***> wrote:
This works for me in Windows 11 with the same board...
1. Download latest python windows 64bit from https://www.python.org/
2. Install for all users accepting the defaults in the installer
wizard.
3. From a powershell prompt: py -m pip install esptool
4. Then run esptool with: py -m esptool --chip auto --port ${port}
write_flash --erase-all --flash_size=detect ${address} ${image}
${port} is your COM port
${address} is 0x1000 for ESP32, 0x0 for ESP32-C3, and ESP32-S3.
${image} is your firmware file.
For example: py -m esptool --chip auto --port COM17 write_flash
--erase-all --flash_size=detect 0x1000 ESP32_GENERIC-20231005-v1.21.0.bin
—
Reply to this email directly, view it on GitHub
<#13025 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL2RYFZ46HLXGRFFQ7T7BPLYFNOLFAVCNFSM6AAAAAA7SBBAF2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMMJZG42TQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
I got this same message:
"ModuleNotFoundError: No module named 'intelhex'"
What solved it for me was: pip install intelhex
(https://pypi.org/project/intelhex/)