summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBetMul <[email protected]>2023-11-10 17:49:45 +0800
committerGitHub <[email protected]>2023-11-10 17:49:45 +0800
commita0b6e14f0108df2c3ed611fe9df6ce69a7b5b8e7 (patch)
tree8595bfc62eac4bd0b3cf813fd0570bd70ef64116
parented357aa0141a03924e647a71fff59a66c66d34f1 (diff)
ESP32C3 add program ways in Linux (#8237)
-rw-r--r--bsp/ESP32_C3/README.md21
-rw-r--r--bsp/ESP32_C3/README_ZH.md21
2 files changed, 36 insertions, 6 deletions
diff --git a/bsp/ESP32_C3/README.md b/bsp/ESP32_C3/README.md
index 8fd8164ab1..7789cee56d 100644
--- a/bsp/ESP32_C3/README.md
+++ b/bsp/ESP32_C3/README.md
@@ -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
@@ -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.
diff --git a/bsp/ESP32_C3/README_ZH.md b/bsp/ESP32_C3/README_ZH.md
index d57ea24c1c..5784329f6d 100644
--- a/bsp/ESP32_C3/README_ZH.md
+++ b/bsp/ESP32_C3/README_ZH.md
@@ -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. 烧录工具配置
@@ -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的小火车`来联系