虽然我正在使用 M5 板,M5Stamp Pico,它也使用 ESP32-PICO-D4,但我认识到它在技术上不是同一个设备。尽管如此,也许这会有所帮助。这里的 MAC 全部替换为 0。
我使用以下命令在 Windows 上成功地将 ESP32 MicroPython 固件刷写到开发板上,并且它按预期运行。我使用了来自https://micropython.org/download/esp32/的最新 ESP32 通用固件v1.17。
esptool.py --chip esp32 --port com6 --baud 115200 write_flash --flash_size detect 0x1000 esp32-20210902-v1.17.bin
董事会详情如下:
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.
闪存擦除
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刷机成功:
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/
with esptool.py~ 需要 esptool.py 3.1 来识别新的 ESP 芯片。
使用 esptool.py 使用以下命令语法(替换 COM 端口号!):
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。我连接了,使用该页面选择我的网络,并且它正在按我怀疑的那样工作。