Skip to content

Commit 89c9555

Browse files
committed
add esptool
介绍如何使用esptool工具进行烧录,并指出esptool的相关文档位置
1 parent 578f19e commit 89c9555

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

ESPtool/how_to_use_esptool.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ESPtool烧录方法介绍
2+
> 首先根据[esptool github](https://github.com/espressif/esptool#usage)有详细介绍esptool的用法,下面以实际烧录语句来介绍用法。
3+
4+
## 烧录指令:
5+
```
6+
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 460800 write_flash -z --flash_mode dio --flash_freq 40m 0x1000 bit_BL_DIO_40M.bin 0x8000 bit_partitions.bin 0xe000 bit_boot_app0.bin 0x10000 bit_default.bin
7+
```
8+
> 包含在`esptool.py -h`
9+
10+
`--chip` 指定烧录芯片,可选项有[`auto`,`esp8266`,`esp32`],这里使用`esp32`
11+
`--port` 指定烧录端口,在linux下面bit的端口为`/dev/ttyUSB*`,在windows下面bit的端口为`COM*`
12+
`--baud` 指定烧录端口速率,可以选用一些常用端口速率,115200、460800、921600或1152000等等,不仅限于这里提到的速率。
13+
14+
> 包含在`esptool.py wirte_flash -h`
15+
16+
`wirte_flash` 指定写入flash模式,通常会配合`-z`或者`--compress`使用,目的是压缩传输数据。
17+
`--flash_mode` 指定SPI flash的模式,可选[`keep`,`qio`,`qout`,`dio`,`dout`],也可以简写为`-fm`
18+
`--flash_freq` 指定SPI flash的频率,可选[`keep`,`40m`,`26m`,`20m`,`80m`],也可以简写为`-ff`
19+
`--flash_size` 指定SPI flash的大小(MegaBytes为单位),可选啊[`1MB`, `2MB`, `4MB`, `8MB`, `16M`],也可以简写为`-fs`
20+
`<address> <filename>` 地址后跟二进制文件名,用空格分隔

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@
2929
+ partitions.bin : BPI-BIT的Webduino固件分区表文件
3030
+ bootloader_dio_40m.bin : Espressif-WROOM-32的bootloader(适用于速度为40MHz的DIO烧录模式)
3131

32-
### Windows操作系统下的烧录方式
32+
### 各个操作系统下的烧录方式
3333

34-
> #### 工具:[ESP FLASH DOWNLOAD TOOL](/Windows/FLASH_DOWNLOAD_TOOLS_V3.6.4.rar)
34+
> #### 工具:[ESP FLASH DOWNLOAD TOOL](/Windows/FLASH_DOWNLOAD_TOOLS_V3.6.4.rar)(Windows)
3535
3636
[ESP FLASH DOWNLOAD TOOL烧录方法(Wiki)](https://github.com/BPI-STEAM/BPI-BIT-WebDuino/wiki#esp-flash-download-tool)
3737

38-
> #### Auto Flash工具:[AutoFlashWebduinoBin](/AutoFlash)
38+
> #### Auto Flash工具:[AutoFlashWebduinoBin](/AutoFlash)(Windows)
3939
4040
[Auto Flash工具烧录方法(Wiki)](https://github.com/BPI-STEAM/BPI-BIT-WebDuino/wiki#auto-flash%E5%B7%A5%E5%85%B7)
41+
42+
> #### ESPtool工具:[ESPtool安装(github)](https://github.com/espressif/esptool#installation--dependencies)(Windows&linux&macOS)
43+
44+
[ESPtool介绍(github)](https://github.com/espressif/esptool)

0 commit comments

Comments
 (0)