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 +In Windows, we can use *flash* supported by ESPRESSIF. + +In Linux, we can use the esptool, which we have downloaded serval steps + +### Windows + 1. Programming tool download - The current bsp test uses the `flash_download_tool_3.9.4` tool to program without errors. - - 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) + 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". ## 下载烧录 +Windows 下可以使用「乐鑫科技」提供的 flash 工具进行烧录 + +Linux 下可以使用先前下载的 esptool 进行烧录 + +### Windows + 1. 烧录工具下载 - 当前bsp测试使用`flash_download_tool_3.9.4`工具进行烧录无误。 - - 烧录工具下载地址:[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) + 当前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的小火车`来联系