Files
tldr/pages.zh/common/esptool.py.md

12 lines
436 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# esptool.py
> Espressif 芯片(例如 ESP8266的引导加载程序工具。
> 更多信息:<https://docs.espressif.com/projects/esptool/en/latest/esp32/>.
- 将固件文件闪存到具有给定端口和波特率的 ESP 芯片:
`sudo esptool.py --port {{port}} --baud {{baud_rate}} write_flash 0x0 {{path/to/firmware.bin}}`
- 清除 ESP 芯片的闪存:
`sudo esptool.py --port {{port}} --baud {{baud_rate}} erase_flash`