docs: update firmware update

This commit is contained in:
Linda
2022-07-29 14:22:15 +08:00
parent b3dae46172
commit ccc2711129
4 changed files with 90 additions and 92 deletions
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 165 KiB

+49 -51
View File
@@ -1,126 +1,124 @@
* [中文版本](./firmware_update_cn.md)
# Update Firmware
# Updating Firmware
The BOX series development boards support updating firmware through USB, you just need:
The BOX series development boards support updating firmware through USB. To update firmware, you only need:
1. USB Type-C cable
2. Latest firmware bin file
1. A USB Type-C cable
2. Latest firmware (bin file)
**Important Note:**
> If USB download fails, please hold down `Boot` button and then press `Reset` button to initiates Firmware Download mode.
> If the downloading through USB fails, please hold down the `Boot` button and then press the `Reset` button to initiate Firmware Download mode.
## Latest Firmware Download
## Downloading Latest Firmware
For the latest firmware, please refer to: https://github.com/espressif/esp-box/releases
For the latest firmware, please go to https://github.com/espressif/esp-box/releases.
1. Choose the latest release version
2. Click `Assets` to show more files
3. Choose an `xxxxxx.bin` to download
1. Choose the latest release version.
2. Click `Assets` to show more files.
3. Choose an `xxxxxx.bin` and download it.
<div align="center">
<img src="_static/bin_download.png">
<img src="_static/bin_download.png" width="70%">
</div>
## Firmware update
## Updating Firmware
Please follow the link below correspond to your OS to update the firmware.
Please follow the link below corresponding to your OS to update the firmware.
| [Windows](#firmware-update-for-windows) | [Linux](#firmware-update-for-linux) | [macOS](#firmware-update-for-macos) |
| [<center> Windows </center>](#firmware-update-for-windows) | [<center> Linux </center>](#firmware-update-for-linux) | [<center> macOS </center>](#firmware-update-for-macos) |
|:----:|:----:|:----:|
| [<img src="_static/windows-logo.png" width="320" width="240" align="center" />](#firmware-update-for-windows) | [<img src="_static/linux-logo.png" width="320" width="240" align="center" />](#firmware-update-for-linux) | [<img src="_static/macos-logo.jpg" width="320" width="240" align="center" />](#firmware-update-for-macos) |
| [<img src="_static/windows-logo.png" width="40" align="center" />](#firmware-update-for-windows) | [<img src="_static/linux-logo.png" width="40" align="center" />](#firmware-update-for-linux) | [<img src="_static/macos-logo.jpg" width="40" align="center" />](#firmware-update-for-macos) |
#### Firmware update for Windows
### Updating Firmware for Windows
We recommend using `Windows 10` and above system. Under `Windows 10` system, the driver of `USB-Serial-Jtag` will be downloaded automatically. If you use the `Windows 7`, please download and install [USB-Serial-JTAG drive](https://dl.espressif.com/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip) manually.
We recommend using `Windows 10` and above. Under `Windows 10` system, the driver of `USB-Serial-Jtag` will be downloaded automatically. If you use `Windows 7`, please download and install [USB-Serial-JTAG drive](https://dl.espressif.com/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip) manually.
1. [Download latest firmware](#latest-firmware-download)
2. Connect your development board to the computer through USB Type-C cable.
3. Please make sure the computer is connected to the Internet first. When the driver is installed, you can find two new devices appear on `Device Manager` list, `COMX` (`COM2` for example) and `USB JTAG/serial debug unit`, the former is used to download firmware or output program logs, the latter is used for JTAG debugging.
1. [Download the latest firmware](#latest-firmware-download).
2. Connect your development board to the computer through a USB Type-C cable.
3. Please make sure the computer is connected to the Internet first. When the driver is installed, you can find two new devices appear on the `Device Manager` list, `COMX` (`COM2` for example) and `USB JTAG/serial debug unit`. The first one is used to download firmware or output program logs, and the second one is used for JTAG debugging.
<div align="center">
<img src="_static/device_manager_usb_serial_jtag.png">
<img src="_static/device_manager_usb_serial_jtag.png" width="450">
</div>
4. Download [Windows download tool](https://www.espressif.com/sites/default/files/tools/flash_download_tool_3.9.2_0.zip) and unzip it to any folder, then run the executable file `flash_download_tool_x.x.x.exe`
5. Please choose `chipType`: `ESP32S3`, `workMode`: `develop`, `loadMode`: `usb`, then click `OK` to enter the download tool config interface.
4. Download [Windows download tool](https://www.espressif.com/sites/default/files/tools/flash_download_tool_3.9.2_0.zip) and unzip it to any folder. Then double-click to run the executable file `flash_download_tool_x.x.x.exe`.
5. Please set `chipType` to `ESP32S3`, `workMode` to `develop`, `loadMode` to `usb`. Then, click `OK` to enter the download tool configuration interface.
<div align="center">
<img src="_static/dl_tool_windows.png">
<img src="_static/dl_tool_windows.png" width="180">
</div>
6. Follow the instruction below to configure the downloaded tool:
1. Choose the path of firmware `xxxx.bin`, then set the download address to `0x0`.
2. Select the COM port, like `COM2` for this PC.
6. Follow the instructions below to configure the downloaded tool:
1. Choose the path of firmware `xxxx.bin`, and set the download address to `0x0`.
2. Select the COMX port (`COM2` for example) for your PC.
3. Click `START` to start the downloading.
<div align="center">
<img src="_static/dl_tool_windows_2.png">
<img src="_static/dl_tool_windows_2.png" width="300">
</div>
7. After downloading, `FINISH` will appear on the tool. Next, **please reboot to run the new firmware!**
7. After the firmware is downloaded, `FINISH` will appear on the tool. Next, **please press the `Reset` button to run the new firmware!**
<div align="center">
<img src="_static/dl_tool_windows_3.png">
<img src="_static/dl_tool_windows_3.png" width="300">
</div>
#### Firmware update for Linux
### Updating Firmware for Linux
1. [Download latest firmware](#latest-firmware-download)
2. Connect your development board to the computer through USB Type-C cable, there is no need to install the driver of `USB-Serial-Jtag` under Linux system.
3. Install `esptool`, input the following commands in `Terminal` (`pip` can be specified as `pip3`) :
1. [Download the latest firmware](#latest-firmware-download).
2. Connect your development board to the computer through a USB Type-C cable. There is no need to install the driver of `USB-Serial-Jtag` under Linux system.
3. Install `esptool` by entering the following command in `Terminal` (`pip` can be specified as `pip3`):
```
pip install esptool
```
<div align="center">
<img src="_static/linux_install_esptool.png">
<img src="_static/linux_install_esptool.png" width="480">
</div>
4. Follow the instruction to download the firmware (`pip` can be specified as `pip3`)
4. Follow the below instruction to download the firmware (`pip` can be specified as `pip3`):
```
python -m esptool --chip esp32s3 write_flash 0x0 download_path/test_bin.bin
```
1. `0x0` is the fixed flash address
2. `download_path/test_bin.bin` need be replaced with your firmware path and name.
1. `0x0` is the fixed flash address.
2. `download_path/test_bin.bin` should be replaced with your firmware path and name.
5. After updating, the download tool will prompt `Hash of data verified`. Next, **please reboot to run the new firmware!**
5. After the firmware is updated, the download tool will prompt `Hash of data verified`. Next, **please press the `Reset` button to run the new firmware!**
<div align="center">
<img src="_static/linux_download.png">
<img src="_static/linux_download.png" width="480">
</div>
#### Firmware update for macOS
### Updating Firmware for macOS
1. [Download latest firmware](#latest-firmware-download)
2. Connect your development board to the computer through USB Type-C cable, there is no need to install the driver of `USB-Serial-Jtag` under macOS.
3. Install `esptool`, input the following codes in `Terminal` (`pip3` can be specified as `pip`) :
1. [Download the latest firmware](#latest-firmware-download).
2. Connect your development board to the computer through a USB Type-C cable. There is no need to install the driver of `USB-Serial-Jtag` under macOS.
3. Install `esptool` by entering the following command in `Terminal` (`pip3` can be specified as `pip`):
```
pip3 install esptool
```
<div align="center">
<img src="_static/macos_install_esptool.png">
<img src="_static/macos_install_esptool.png" width="520">
</div>
4. Follow the instruction to download the firmware (`pip3` can be specified as `pip`):
4. Follow the below instruction to download the firmware (`pip3` can be specified as `pip`):
```
python3 -m esptool --chip esp32s3 write_flash 0x0 download_path/test_bin.bin
```
1. `0x0` is the fixed flash address.
2. `download_path/test_bin.bin` need be replaced with your firmware path and name.
2. `download_path/test_bin.bin` should be replaced with your firmware path and name.
5. After updating, the download tool will prompt `Hash of data verified`. Next, **please reboot to run the new firmware!**
5. After the firmware is updated, the download tool will prompt `Hash of data verified`. Next, **please press the `Reset` button to run the new firmware!**
<div align="center">
<img src="_static/macos_download.png">
<img src="_static/macos_download.png" width="550">
</div>
+41 -41
View File
@@ -2,73 +2,73 @@
# 更新固件
BOX 系列开发板支持使用 USB 接口更新固件,仅需要准备:
BOX 系列开发板支持使用 USB 接口更新固件,仅需要准备:
1. 一根 USB Type-C 数据线
2. 最新版本固件(bin 文件)
**需要提醒:**
**需要提醒**
> 如遇 USB 下载失败,请按住 `Boot` 按键的同时按一下 `Reset` 按键进入“固件下载”模式。
## 下载最新版本固件
下载最新发布的固件,请访问https://github.com/espressif/esp-box/releases
请访问 https://github.com/espressif/esp-box/releases 下载最新发布的固件。
1. 请先选择一个固件(建议使用最新 release
2. 点击 `Assets` 展开下载链接
3. 选择一个 `xxxxxx.bin` 进行下载
1. 请先选择一个固件(建议使用最新发布的固件)。
2. 点击 `Assets` 展开下载链接
3. 选择一个 `xxxxxx.bin` 进行下载
<div align="center">
<img src="_static/bin_download.png">
<img src="_static/bin_download.png" width="70%">
</div>
## 固件更新
不同操作系统的固件更新方法,请参考以下连接:
不同操作系统的固件更新方法,请参考以下链接:
| [Windows](#windows-系统更新固件说明) | [Linux](#linux-系统更新固件说明) | [macOS](#macos-系统更新固件说明) |
| [<center> Windows </center>](#windows-系统更新固件说明) | [<center> Linux </center>](#linux-系统更新固件说明) | [<center> macOS </center>](#macos-系统更新固件说明) |
|:----:|:----:|:----:|
| [<img src="_static/windows-logo.png" width="320" align="center" />](#windows-系统更新固件说明) | [<img src="_static/linux-logo.png" width="320" align="center" />](#linux-系统更新固件说明) | [<img src="_static/macos-logo.jpg" width="320" align="center" />](#macos-系统更新固件说明) |
| [<img src="_static/windows-logo.png" width="40" align="center" />](#windows-系统更新固件说明) | [<img src="_static/linux-logo.png" width="40" align="center" />](#linux-系统更新固件说明) | [<img src="_static/macos-logo.jpg" width="40" align="center" />](#macos-系统更新固件说明) |
#### Windows 系统更新固件说明
### Windows 系统更新固件说明
我们推荐使用 `Windows 10` 及以上版本,在该系统下 `USB-Serial-Jtag` 的驱动将联网自动下载。如果使用 `Windows 7` 系统,请手动下载 [USB-Serial-JTAG 驱动](https://dl.espressif.com/dl/idf-driver/idf-driver-esp32-usb-jtag-2021-07-15.zip) 并安装。
1. [下载最新版本固件](#下载最新版本固件)
2. 使用 USB Type-C 数据线将开发板接入电脑
3. 初次使用,请确保电脑已联网驱动正常自动安装后,我们能在设备管理器看到以下设备。这里将多出两个新的设备 `COMX`(此电脑为 `COM2` ) `USB JTAG/serial debug unit`,前者用于下载固件和输出程序日志,后者用于 JTAG 调试
1. [下载最新版本固件](#下载最新版本固件)
2. 使用 USB Type-C 数据线将开发板接入电脑
3. 初次使用,请确保电脑已联网驱动正常自动安装后,我们能在设备管理器看到以下设备。这里将多出两个新的设备 `COMX`此电脑为 `COM2``USB JTAG/serial debug unit`,前者用于下载固件和输出程序日志,后者用于 JTAG 调试
<div align="center">
<img src="_static/device_manager_usb_serial_jtag_cn.png">
<img src="_static/device_manager_usb_serial_jtag_cn.png" width="450">
</div>
4. 下载 [Windows download tool](https://www.espressif.com/sites/default/files/tools/flash_download_tool_3.9.2_0.zip),并解压到任意文件夹,然后请双击打开下载工具可执行文件 `flash_download_tool_x.x.x.exe`
5. 请选择 `chipType`: `ESP32S3`, `workMode`: `develop`, `loadMode`: `usb`,之后点击 `OK` 进入下载工具界面:
4. 下载 [Windows download tool](https://www.espressif.com/sites/default/files/tools/flash_download_tool_3.9.2_0.zip),并解压到任意文件夹,然后请双击打开下载工具可执行文件 `flash_download_tool_x.x.x.exe`
5. 请选择 `chipType` `ESP32S3`, `workMode` `develop`, `loadMode` `usb`,之后点击 `OK` 进入下载工具界面:
<div align="center">
<img src="_static/dl_tool_windows.png">
<img src="_static/dl_tool_windows.png" width="180">
</div>
6. 请按照下图指示配置下载工具:
1. 首先选择 `xxxx.bin` 路径,将地址设置为 `0x0`
2. 选择下载端口,此电脑为 `COM2`
3. 点击 `START` 开始固件下载
6. 请按照下图指示配置下载工具
1. 首先选择 `xxxx.bin` 路径,将地址设置为 `0x0`
2. 选择下载端口 COMX,此电脑为 `COM2`
3. 点击 `START` 开始固件下载
<div align="center">
<img src="_static/dl_tool_windows_2.png">
<img src="_static/dl_tool_windows_2.png" width="300">
</div>
7. 下载完成后,工具将提示 `FINISH`,之后**重新上电,即可进入新程序!**
7. 下载完成后,工具将提示 `FINISH`,之后**按下 `Reset` 按键,即可进入新程序!**
<div align="center">
<img src="_static/dl_tool_windows_3.png">
<img src="_static/dl_tool_windows_3.png" width="300">
</div>
#### Linux 系统更新固件说明
### Linux 系统更新固件说明
1. [下载最新版本固件](#下载最新版本固件)
2. 使用 USB Type-C 数据线将开发板接入电脑,`USB-Serial-Jtag` 在 Linux 系统下无需安装驱动
1. [下载最新版本固件](#下载最新版本固件)
2. 使用 USB Type-C 数据线将开发板接入电脑,`USB-Serial-Jtag` 在 Linux 系统下无需安装驱动
3. 安装下载工具 `esptool`,请打开 `终端` ,并输入以下指令(`pip` 也可指定为 `pip3`):
```
@@ -76,7 +76,7 @@ BOX 系列开发板支持使用 USB 接口更新固件,你仅需要准备:
```
<div align="center">
<img src="_static/linux_install_esptool.png">
<img src="_static/linux_install_esptool.png" width="480">
</div>
4. 请使用以下指令下载固件(`python` 也可指定为 `python3`):
@@ -85,19 +85,19 @@ BOX 系列开发板支持使用 USB 接口更新固件,你仅需要准备:
python -m esptool --chip esp32s3 write_flash 0x0 download_path/test_bin.bin
```
1. `0x0` 是一个固定值,表示即将写入的 flash 地址
2. `download_path/test_bin.bin` 是一个变量,请替换为您的固件下载路径和名称
1. `0x0` 是一个固定值,表示即将写入的 flash 地址
2. `download_path/test_bin.bin` 是一个变量,请替换为您的固件下载路径和名称
5. 下载完成后,工具将提示 `Hash of data verified`,之后**重新上电,即可进入新程序!**
5. 下载完成后,工具将提示 `Hash of data verified`,之后**按下 `Reset` 按键,即可进入新程序!**
<div align="center">
<img src="_static/linux_download.png">
<img src="_static/linux_download.png" width="480">
</div>
#### macOS 系统更新固件说明
### macOS 系统更新固件说明
1. [下载最新版本固件](#下载最新版本固件)
2. 使用 USB Type-C 数据线将开发板接入电脑,`USB-Serial-Jtag` 在 macOS 系统下无需安装驱动
1. [下载最新版本固件](#下载最新版本固件)
2. 使用 USB Type-C 数据线将开发板接入电脑,`USB-Serial-Jtag` 在 macOS 系统下无需安装驱动
3. 安装下载工具 `esptool`,请打开 `终端` ,并输入以下指令(`pip3` 也可指定为 `pip`):
```
@@ -105,7 +105,7 @@ BOX 系列开发板支持使用 USB 接口更新固件,你仅需要准备:
```
<div align="center">
<img src="_static/macos_install_esptool.png">
<img src="_static/macos_install_esptool.png" width="520">
</div>
4. 请使用以下指令下载固件(`python3` 也可指定为 `python`):
@@ -114,11 +114,11 @@ BOX 系列开发板支持使用 USB 接口更新固件,你仅需要准备:
python3 -m esptool --chip esp32s3 write_flash 0x0 download_path/test_bin.bin
```
1. `0x0` 是一个固定值,表示即将写入的 flash 地址
2. `download_path/test_bin.bin` 是一个变量,请替换为您的固件下载路径和名称
1. `0x0` 是一个固定值,表示即将写入的 flash 地址
2. `download_path/test_bin.bin` 是一个变量,请替换为您的固件下载路径和名称
5. 下载完成后,工具将提示 `Hash of data verified`,之后**重新上电,即可进入新程序!**
5. 下载完成后,工具将提示 `Hash of data verified`,之后**按下 `Reset` 按键,即可进入新程序!**
<div align="center">
<img src="_static/macos_download.png">
<img src="_static/macos_download.png" width="550">
</div>