使用 usb 连接 esp32 开发板,通过命令ls /dev/cu.*
查看到开发板串口/dev/cu.usbmodem101
。
然后命令: esptool.py --port /dev/cu.usbmodem101 erase_flash
清除 flash 程序,
再使用命令: esptool.py --port /dev/cu.usbmodem101 --baud 460800 write_flash 0 ESP32_GENERIC_S3-20250415-v1.25.0.bin
烧录固件,ESP32_GENERIC_S3-20250415-v1.25.0.bin
是在micropython网站下载的相应固件
烧录时的打印:
(/conda) xx@xx-Pro ESP32 % esptool.py --port /dev/cu.usbmodem101 --baud 460800 write_flash 0 ESP32_GENERIC_S3-20250415-v1.25.0.bin
esptool.py v4.8.1
Serial port /dev/cu.usbmodem101
Connecting...
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (QFN56) (revision v0.2)
Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3)
Crystal is 40MHz
MAC: 30:ed:a0:1d:8a:14
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00198fff...
Compressed 1673008 bytes to 1096502...
Wrote 1673008 bytes (1096502 compressed) at 0x00000000 in 8.9 seconds (effective 1508.9 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
(/conda) xx@xx-Pro ESP32 %
然后通过 Thonny
连接开发板,但是 Thonny
的 Shell 日志显示:
Device is busy or does not respond. Your options:
- wait until it completes current work;
- use Ctrl+C to interrupt current work;
- reset the device and try again;
- check connection properties;
- make sure the device has suitable MicroPython / CircuitPython / firmware;
- make sure the device is not in bootloader mode.
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.