Skip to content

Commit

Permalink
ESP32C3 add program ways in Linux (#8237)
Browse files Browse the repository at this point in the history
  • Loading branch information
bettermultiply authored Nov 10, 2023
1 parent ed357aa commit a0b6e14
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 6 deletions.
21 changes: 18 additions & 3 deletions bsp/ESP32_C3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,15 @@ Type "apropos word" to search for commands related to "word".

## Download and program

1. Programming tool download
In Windows, we can use *flash* supported by ESPRESSIF.

In Linux, we can use the esptool, which we have downloaded serval steps

The current bsp test uses the `flash_download_tool_3.9.4` tool to program without errors.
### Windows

Programming tool download address: [https://www.espressif.com.cn/sites/default/files/tools/flash_download_tool_3.9.4_0.zip](https://www.espressif.com.cn/sites/default/files/tools/flash_download_tool_3.9.4_0.zip)
1. Programming tool download

The current bsp test uses the [Flash Download Tools](https://www.espressif.com.cn/sites/default/files/tools/flash_download_tool_3.9.4_0.zip) tool to program without errors.

2. Programming tool configuration

Expand All @@ -157,6 +161,17 @@ Type "apropos word" to search for commands related to "word".

![flash_download_tools](images/flash_download_tools.png)

### Linux

```sh
esptool.py -b 115200 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x0 path/to/your/bootloader.bin 0x08000 path/to/your/partition-table.bin 0x010000 path/to/your/rtthread.bin
```
if you have more than one ESP device connected, you can use -p to choose which device to use.

if the command failed, check whether user ave enough privilige to access the serials.

or we can check ESPRESSIF's [Troubleshooting](https://docs.espressif.com/projects/esptool/en/latest/esp32/troubleshooting.html) to get more help.
## Notes
- The basic functions are now supported, but it needs more, welcome any contributions and feedback.
Expand Down
21 changes: 18 additions & 3 deletions bsp/ESP32_C3/README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,15 @@ Type "apropos word" to search for commands related to "word".

## 下载烧录

1. 烧录工具下载
Windows 下可以使用「乐鑫科技」提供的 flash 工具进行烧录

Linux 下可以使用先前下载的 esptool 进行烧录

当前bsp测试使用`flash_download_tool_3.9.4`工具进行烧录无误。
### Windows

烧录工具下载地址:[https://www.espressif.com.cn/sites/default/files/tools/flash_download_tool_3.9.4_0.zip](https://www.espressif.com.cn/sites/default/files/tools/flash_download_tool_3.9.4_0.zip)
1. 烧录工具下载

当前bsp测试使用 [Flash Download Tools](https://www.espressif.com.cn/sites/default/files/tools/flash_download_tool_3.9.4_0.zip) 工具进行烧录无误。

2. 烧录工具配置

Expand All @@ -165,6 +169,17 @@ Type "apropos word" to search for commands related to "word".

![flash_download_tools](images/flash_download_tools.png)

### Linux 下进行烧录

```sh
esptool.py -b 115200 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x0 path/to/your/bootloader.bin 0x08000 path/to/your/partition-table.bin 0x010000 path/to/your/rtthread.bin
```

当多个 ESP 设备连接时,可以使用 -p 指定某个设备

如果失败,可考虑是否是因为 user 权限不够,无法直接访问串口。
或参考乐鑫[官方文档](https://docs.espressif.com/projects/esptool/en/latest/esp32/troubleshooting.html)进行查错。

## 注意事项

- 目前RTTHREAD支持起来了,后续会需要继续完善一些其他功能,刚开始使用ESP32,欢迎小伙伴一起来讨论和贡献。感兴趣的可以通过公众号`Thomas的小火车`来联系
Expand Down

0 comments on commit a0b6e14

Please sign in to comment.