求助 ESP-32烧录时出现了fatal error

hiyori1128
Posts: 2
Joined: Wed Sep 30, 2020 7:31 am

求助 ESP-32烧录时出现了fatal error

Postby hiyori1128 » Wed Sep 30, 2020 7:40 am

error.png
a fatal error
error.png (82.9 KiB) Viewed 5874 times
板子是ESP32-LyraTD-MSC_A V2.2
求大佬帮助

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: 求助 ESP-32烧录时出现了fatal error

Postby ESP_morris » Fri Oct 09, 2020 5:37 am

检查一下是不是用错了COM口?

Baotong
Posts: 1
Joined: Mon Apr 19, 2021 12:00 pm

Re: 求助 ESP-32烧录时出现了fatal error

Postby Baotong » Mon Apr 19, 2021 12:15 pm

不知问题解决了没有?
我遇到了类似的问题:
我用的是ESP-WROVER-KIT V4.1板, ESP-IDF v4.2里的examples\get-started\blink.
在Device managermanager里显示COM3和COM4, 用idf.py -p COM3 -b 115200 flash 和idf.py -p COM4 -b 115200 flash命令烧录都失败。
--------------------------------------------------------------------------------------------------------------------------------------------------
C:\Users\x'xxx\Desktop\esp-idf\examples\get-started\blink>idf.py -p COM3 -b 115200 flash
Executing action: flash
Running ninja in directory c:\users\tong.bao\desktop\esp-idf\examples\get-started\blink\build
Executing "ninja flash"...
[1/4] Performing build step for 'bootloader'
ninja: no work to do.
[1/2] cmd.exe /C "cd /D C:\Users\Tong.Bao\Desktop\esp-idf\...o/Desktop/esp-idf/components/esptool_py/run_esptool.cmake"
esptool.py --chip esp32 -p COM3 -b 115200 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 blink.bin
esptool.py v3.0
Serial port COM3
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)


FAILED: CMakeFiles/flash
cmd.exe /C "cd /D C:\Users\Tong.Bao\Desktop\esp-idf\components\esptool_py && C:\Users\Tong.Bao\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/Users/Tong.Bao/Desktop/esp-idf" -D ESPTOOLPY="C:\Users\Tong.Bao\.espressif\python_env\idf4.2_py3.8_env\Scripts\python.exe C:/Users/Tong.Bao/Desktop/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32" -D ESPTOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/Users/Tong.Bao/Desktop/esp-idf/examples/get-started/blink/build" -P C:/Users/Tong.Bao/Desktop/esp-idf/components/esptool_py/run_esptool.cmake"
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
----------------------------------------------------------------------------------------------------------------------------------------------------

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

Re: 求助 ESP-32烧录时出现了fatal error

Postby ESP_Gargamel » Tue Apr 20, 2021 11:55 am

log 看上去是串口没通。

1、你先用串口调试助手之类的打开 COM3 或 COM4,波特率 115200,reset 开发板,看是否有正常 log 输出;
2、你看下你的 ESP-WROVER-KIT,JP2 上 RXD/TXD 有没有跳上?https://docs.espressif.com/projects/esp ... up-options

Who is online

Users browsing this forum: No registered users and 38 guests