首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何使用esptool将tasmota (或任何内容)刷新到M5Stack ATOM Lite (ESP32-PICO-D4)?

如何使用esptool将tasmota (或任何内容)刷新到M5Stack ATOM Lite (ESP32-PICO-D4)?
EN

Stack Overflow用户
提问于 2021-03-07 16:44:07
回答 1查看 437关注 0票数 1

我已经尝试了这么多方法,但是使用esptool将固件刷新到M5Stack ATOM Lite ESP32开发工具包的正确方法是什么?它基本上是一个ESP32-PICO-D4。这(在许多其他命令中)不起作用:

代码语言:javascript
复制
> esptool.py --chip auto --port /dev/ttyUSB0 --baud 115200 --before
> default_reset --after hard_reset write_flash -z --flash_mode dio
> --flash_freq 40m --flash_size detect 0x1000 ~/Downloads/tasmota32.bin

esptool.py v3.0  
Serial port /dev/ttyUSB0  
Connecting.......  
Detecting chip type... ESP32  
Chip is ESP32-PICO-D4 (revision 1)  
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None  
Crystal is 40MHz  
MAC: d8:a0:1d:5b:d1:a8  
Uploading stub...  
Running stub...  
Stub running...  
Configuring flash size...  
Auto-detected Flash size: 4MB  
Flash params set to 0x0220  
Compressed 1175280 bytes to 700387...  
Wrote 1175280 bytes (700387 compressed) at 0x00001000 in 62.9 seconds (effective 149.4 kbit/s)...  
Hash of data verified.  

Leaving...  
Hard resetting via RTS pin...  

闪烁成功,但当我看着arduino IDE的串行监视器时,我一遍又一遍地看着

代码语言:javascript
复制
> 11:10:25.593 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
> 11:10:25.593 -> configsip: 188777542, SPIWP:0xee
> 11:10:25.593 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
> 11:10:25.593 -> mode:DIO, clock div:2
> 11:10:25.593 -> load:0x3f400020,len:289900 11:10:25.958 -> ets Jun 8 2016 00:22:57
EN

回答 1

Stack Overflow用户

发布于 2021-10-09 08:30:27

当我使用ESP32- Pico -D4板的时候,我意识到它在技术上是不一样的。M5Stamp -PICO-D4也使用esp32-PICO-d4。尽管如此,也许这会有所帮助。这里的MACs都换成了零。

我使用下面的命令在Windows上成功地将ESP32 MicroPython固件刷新到主板上,并且运行正常。我使用的是https://micropython.org/download/esp32/最新的ESP32通用固件v1.17。

代码语言:javascript
复制
esptool.py --chip esp32 --port com6 --baud 115200 write_flash --flash_size detect 0x1000 esp32-20210902-v1.17.bin

电路板详细信息阅读:

代码语言:javascript
复制
esptool.py --port com6 --baud 115200 --after no_reset read_mac
esptool.py v3.1
Serial port com6
Connecting...
Device PID identification is only supported on COM and /dev/ serial ports.
..
Detecting chip type... ESP32
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 00:00:00:00:00:00
Uploading stub...
Running stub...
Stub running...
MAC: 00:00:00:00:00:00
Staying in bootloader.

闪存已擦除

代码语言:javascript
复制
esptool.py --port com6 --baud 115200 --chip esp32 erase_flash
esptool.py v3.1
Serial port com6
Connecting...
Device PID identification is only supported on COM and /dev/ serial ports.
...
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 00:00:00:00:00:00
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 5.2s
Hard resetting via RTS pin...

MicroPython已成功刷新:

代码语言:javascript
复制
esptool.py --chip esp32 --port com6 --baud 115200 write_flash --flash_size detect 0x1000 esp32-20210902-v1.17.bin
esptool.py v3.1
Serial port com6
Connecting...
Device PID identification is only supported on COM and /dev/ serial ports.
.
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 00:00:00:00:00:00
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00175fff...
Compressed 1527504 bytes to 987584...
Wrote 1527504 bytes (987584 compressed) at 0x00001000 in 88.8 seconds (effective 137.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

这就是说,虽然上面的东西确实响应了你的“或任何”请求,但我抓起了第二个M5Stamp,并尝试了Tasmota。

我从他们的存储库下载了ESP32文件到一个文件夹:https://github.com/tasmota/install/tree/main/static/esp32

还将Tasmota32固件下载到相同的文件夹:http://ota.tasmota.com/tasmota32/release/tasmota32.bin

然后,我从下面的页面使用他们提供的命令,只需将COM端口更改为我正确的端口COM6:

https://tasmota.github.io/docs/ESP32/

使用esptool.py~需要esptool.py 3.1来识别新的电除尘器芯片。

对于esptool.py,使用以下命令语法(替换COM端口号!):

代码语言:javascript
复制
C:\temp\tasmota>esptool.py --chip esp32 --port COM6 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect 0x1000 bootloader_dout_40m.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 tasmota32.bin
esptool.py v3.1
Serial port COM6
Connecting........_
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 00:00:00:00:00:00
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00001000 to 0x00004fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0017cfff...
Compressed 15872 bytes to 10320...
Wrote 15872 bytes (10320 compressed) at 0x00001000 in 1.1 seconds (effective 119.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 129...
Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 299.8 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 739.9 kbit/s)...
Hash of data verified.
Compressed 1492016 bytes to 889195...
Wrote 1492016 bytes (889195 compressed) at 0x00010000 in 80.0 seconds (effective 149.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

以115200bps的速度连接到COM6上的控制台时,我得到了一条指示成功的输出。我用手机查看了WiFi网络,看到了Tasmota SSID。我连接了,使用页面选择了我的网络,它正在工作,我怀疑它应该是。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66514659

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档