[已解决]esp32S3无法烧写

heipppppp
Posts: 10
Joined: Thu Sep 23, 2021 9:52 am

[已解决]esp32S3无法烧写

Postby heipppppp » Thu Sep 23, 2021 9:58 am

使用的是esp32S3,IDF v4.3,环境windows 10
前面的构建都可以成功,但是一进入烧写就会报错:
A fatal error occurred: This chip is ESP32-S3(beta3) not ESP32-S3(beta2). Wrong --chip argument?
请问原因是什么呢?我进入 menuconfig 界面,SDK只有ESP32-S3(beta2) 没有ESP32-S3(beta3) 版本,是因为现在还不支持ESP32-S3(beta3) 吗?
Last edited by heipppppp on Thu Nov 04, 2021 6:03 am, edited 1 time in total.

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: esp32S3无法烧写

Postby ESP_Gargamel » Fri Sep 24, 2021 2:31 am

用 master 试一下,4.3 对 S3 支持不完整,对 S3 的完整支持将在 4.4 上。

heipppppp
Posts: 10
Joined: Thu Sep 23, 2021 9:52 am

Re: esp32S3无法烧写

Postby heipppppp » Sun Sep 26, 2021 3:41 am

现在我换成ubuntu18.04 ,idf也换成了4.4,但是我进入menuconfig仍然只有esp32s3(beta2)这一个选项,尝试esp32s3beta2进行烧写,出现以下问题:
  1. my001@my001-VirtualBox:~/esp/esp-idf-esp32s3-gitee/esp-idf/examples/get-started/hello_world$ idf.py  -p /dev/ttyUSB0 flash
  2. Executing action: flash
  3. Running ninja in directory /home/my001/esp/esp-idf-esp32s3-gitee/esp-idf/examples/get-started/hello_world/build
  4. Executing "ninja flash"...
  5. [1/4] Performing build step for 'bootloader'
  6. ninja: no work to do.
  7. [1/2] cd /home/my001/esp/esp-idf-esp32s...onents/esptool_py/run_serial_tool.cmake
  8. esptool.py esp32s3beta2 -p /dev/ttyUSB0 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 80m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x0 bootloader/bootloader.bin 0x10000 hello-world.bin
  9. esptool.py v3.1-dev
  10. Serial port /dev/ttyUSB0
  11. Connecting........_____.
  12. WARNING: This chip doesn't appear to be a ESP32-S3(beta2) (chip magic value 0x00000009). Probably it is unsupported by this version of esptool.
  13. Chip is ESP32-S3(beta2)
  14. Features: WiFi, BLE
  15. Crystal is 40MHz
  16. MAC: 00:00:00:00:00:00
  17. Uploading stub...
  18. Running stub...
  19.  
  20. A fatal error occurred: Invalid head of packet (0x47)
  21. CMake Error at run_serial_tool.cmake:50 (message):
  22.  /home/my001/.espressif/python_env/idf4.4_py3.8_env/bin/python
  23.  /home/my001/esp/esp-idf-esp32s3-gitee/esp-idf/components/esptool_py/esptool/esptool.py
  24.  --chip esp32s3beta2 failed
  25.  
  26.  
  27. FAILED: CMakeFiles/flash
  28. cd /home/my001/esp/esp-idf-esp32s3-gitee/esp-idf/components/esptool_py && /usr/bin/cmake -D IDF_PATH="/home/my001/esp/esp-idf-esp32s3-gitee/esp-idf" -D SERIAL_TOOL="/home/my001/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/my001/esp/esp-idf-esp32s3-gitee/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32s3beta2" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="/home/my001/esp/esp-idf-esp32s3-gitee/esp-idf/examples/get-started/hello_world/build" -P /home/my001/esp/esp-idf-esp32s3-gitee/esp-idf/components/esptool_py/run_serial_tool.cmake
  29. ninja: build stopped: subcommand failed.
  30. ninja failed with exit code 1

ESP_ICY
Posts: 404
Joined: Mon Aug 23, 2021 11:10 am

Re: esp32S3无法烧写

Postby ESP_ICY » Tue Sep 28, 2021 2:47 am

更换 IDF 版本后需要重新执行下 . /install.sh 这一步骤。

heipppppp
Posts: 10
Joined: Thu Sep 23, 2021 9:52 am

Re: esp32S3无法烧写

Postby heipppppp » Tue Sep 28, 2021 2:51 am

谢谢,通过切换master分支后执行 ./install.sh 成功。

Who is online

Users browsing this forum: No registered users and 96 guests