使用 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.
1
niboy 129 天前
我也不懂啊,看最后一条:make sure the device is not in bootloader mode.
是不是板子需要特别的跳线才能进入这个 bootloader mode ?你哪里搞来的板子就问谁啊,淘宝买的就问客服 |