esp32 lyratd msc v2.2开发板运行get-started\play_mp3_control例子烧录失败

sinyuuuuu
Posts: 1
Joined: Thu Apr 06, 2023 7:31 am

esp32 lyratd msc v2.2开发板运行get-started\play_mp3_control例子烧录失败

Postby sinyuuuuu » Thu Apr 06, 2023 7:46 am

买回来ESP32 L元aTD MSC v2.2开发板之后,搞了几天了,一次都没烧录成功过,实在不知道怎么搞了,求助。

我是按照这一篇指南一步一步操作的
https://docs.espressif.com/projects/esp ... ep-by-step

1、Linux系统,本地电脑安装的 Ubuntu20.4,Python3.8。
2、尝试更换过电脑,我也在另外三台 Mac电脑上Mac OS试过,都不行。
3、尝试更换过数据线,我把家里7条数据线都试过了,都不行,还在网上新买了一根线,也不行。
4、git clone之后,cd 进入 esp-adf 使用 git submodule update --init --recursive 确保 ESP-ADF 是最新的。
5、插上电源,用电脑连接USB-UART 打开开关,长按Boot按钮,按Rest按钮之后,面板上的绿灯会一直闪。电脑上执行命令 ls /dev/tty* 命令,可以看到对应端口 /dev/ttyUSB0
6、idf.py set-target esp32之后没有报错,会提示
--Configuring done
-- Generating done
-- Build files have been written to: /root/esp/esp-adf/examples/get-started/play_mp3_control/build

7、idf.py menuconfig 选择了ESP32-LyraTD-MSC V2.2,点击保存会提示保存成功。
8、idf.py build也成功,没有报错,提示
[100%] Built target app

Project build complete. To flash, run this command:
/root/.espressif/python_env/idf4.4_py3.8_env/bin/python ../../../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/play_mp3_control.bin
or run 'idf.py -p (PORT) flash'

9、最后执行写入 idf.py -p /dev/ttyUSB0 flash,也尝试过降低baud rate,idf.py -p /dev/ttyUSB0 -b 11520 flash,都会写入失败,最后报下面的错误:

最后写入的时候会报错,

[100%] Built target app_check_size
[100%] Built target app
Scanning dependencies of target flash
esptool.py esp32 -p /dev/ttyUSB0 -b 11520 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 play_mp3_control.bin 0x8000 partition_table/partition-table.bin
esptool.py v3.3.2
Serial port /dev/ttyUSB0
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esp ... oting.html
CMake Error at run_serial_tool.cmake:56 (message):
/root/.espressif/python_env/idf4.4_py3.8_env/bin/python
/root/esp/esp-adf/esp-idf/components/esptool_py/esptool/esptool.py --chip
esp32 failed


make[3]: *** [CMakeFiles/flash.dir/build.make:57: CMakeFiles/flash] Error 1
make[2]: *** [CMakeFiles/Makefile2:2685: CMakeFiles/flash.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:2692: CMakeFiles/flash.dir/rule] Error 2
make: *** [Makefile:203: flash] Error 2
make failed with exit code 2

除了这个示例之外,我也用get started目录下的其它实例试过了,都不行。

ESP_William
Posts: 135
Joined: Tue Apr 24, 2018 5:54 am

Re: esp32 lyratd msc v2.2开发板运行get-started\play_mp3_control例子烧录失败

Postby ESP_William » Tue Apr 11, 2023 9:24 am

从报错来看,是硬件问题(大概率来自您的板子,您要不再看下您电脑上的串口工具打开后是否可以看到板子的打印)
https://docs.espressif.com/projects/esp ... a-received

串口指令烧录不进去,可以同步验证下 Windows 的烧录工具的结果
https://www.espressif.com.cn/zh-hans/su ... ther-tools

Who is online

Users browsing this forum: No registered users and 47 guests