ESP32-DevKitc开发板烧写突然异常导致无法烧写

阳光的味道3121
Posts: 7
Joined: Mon Jun 17, 2019 9:27 am

ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby 阳光的味道3121 » Tue Jun 18, 2019 6:43 am

我新采购回来的8个开发板,第一次烧写固件之后均正常,当make menuconfig保存参数之后再次烧写固件时,8个中的一个提示一直无法烧写成功;其余7个烧写提示正常信息如下:
$ make erase_flash flash
/bin/sh: 第 0 行:cd: D:xxxx-mdf: No such file or directory
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
Python requirements from D:/xxxx/esp/esp-mdf/esp-idf/requirements.txt are satisfied.
Erasing entire flash...
esptool.py v2.6
Serial port COM7
Connecting....
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:6f:28:f0:09:68
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 8.8s
Hard resetting via RTS pin...
Flashing binaries to serial port COM7 (app at offset 0x10000)...
esptool.py v2.6
Serial port COM7
Connecting.....
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
MAC: 24:6f:28:f0:09:68
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 8192 bytes to 31...
Wrote 8192 bytes (31 compressed) at 0x0000d000 in 0.0 seconds (effective 5486.9 kbit/s)...
Hash of data verified.
Compressed 23136 bytes to 13703...
Wrote 23136 bytes (13703 compressed) at 0x00001000 in 1.2 seconds (effective 152.7 kbit/s)...
Hash of data verified.
Compressed 1455344 bytes to 884093...
Wrote 1455344 bytes (884093 compressed) at 0x00010000 in 78.1 seconds (effective 149.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 162...
Wrote 3072 bytes (162 compressed) at 0x00008000 in 0.0 seconds (effective 1071.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...



另外的一个始终无法再次烧写成功的开发板提示异常信息如下:
$ make erase_flash flash
/bin/sh: 第 0 行:cd: D:xxxx-mdf: No such file or directory
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
Python requirements from D:/xxxx/esp/esp-mdf/esp-idf/requirements.txt are satisfied.
Erasing entire flash...
esptool.py v2.6
Serial port COM7
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/d/xxxx/esp/esp-mdf/esp-idf/components/esptool_py/Makefile.projbuild:78:erase_flash] 错误 2

我烧写的固件是mdf中的liht的例程,烧写方法与固件类型所有的8个开发板都一样的,但是不知道为什么有一个开发板会出问题,希望帮我解决下这个问题,少一个开发板组网时一直无法看到变化后的组网新形式

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby ESP_@In逍遥子 » Wed Jun 19, 2019 6:50 am

你可以手动让设备进入下载模式,之后进行下载烧录,方法:
1. 按住 boot 按键不放,再按下 en 按键
2. 随后松开 en 按键,之后松开 boot按键

阳光的味道3121
Posts: 7
Joined: Mon Jun 17, 2019 9:27 am

Re: ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby 阳光的味道3121 » Thu Jun 20, 2019 2:22 am

谢谢你的回复;

我按照如下操作步骤分别下载固件,但是还是不能正常下载固件,提示内容和之前的一样。
我分别按照:
供电过程中boot按下----->>>>en按下----->>>>en松开---->>>>boot松开,随后开始使用make erase_flash flash命令下载。
断电时boot按下---->>>>上电----->>>>en按下----->>>>en松开---->>>>boot松开
断电时boot按下----->>>>en按下---->>>>上电----->>>>en松开---->>>>boot松开

提示信息如下:
xxx@DESKTOP-BTO30NB MINGW32 ~/esp/esp-mdf/examples/development_kit/light
$ make erase_flash flash
/bin/sh: 第 0 行:cd: D:xxx-mdf: No such file or directory
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
Python requirements from D:/xxx/esp/esp-mdf/esp-idf/requirements.txt are satisfied.
Erasing entire flash...
esptool.py v2.6
Serial port COM7
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/d/xxx/esp/esp-mdf/esp-idf/components/esptool_py/Makefile.projbuild:78:erase_flash] 错误 2

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby ESP_@In逍遥子 » Thu Jun 20, 2019 7:39 am

请按照上述操作,请在串口终端中,查看是否出现如下打印,判断是否进入下载模式。

[15:32:18:342] rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))␍␊
[15:32:18:342] waiting for download␍␊
[15:32:18:761] ets Jun 8 2016 00:22:57␍␊
[15:32:18:761] ␍␊
[15:32:18:761] rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))␍␊
[15:32:18:761] waiting for download␍␊
[15:32:19:478] ets Jun 8 2016 00:22:57␍␊

阳光的味道3121
Posts: 7
Joined: Mon Jun 17, 2019 9:27 am

Re: ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby 阳光的味道3121 » Thu Jun 20, 2019 9:26 am

我按下bot键之后串口没有任何信息的打印,难道是这个开发板挂了?

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby ESP_@In逍遥子 » Fri Jun 21, 2019 2:50 am

请确认波特率和串口号选择正确。

还有其他板子吗,可以尝试换个试试。

阳光的味道3121
Posts: 7
Joined: Mon Jun 17, 2019 9:27 am

Re: ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby 阳光的味道3121 » Fri Jun 21, 2019 3:50 am

其他开发板都是ok的,唯独这个板卡有问题的,我估计是不是板卡里面的bootloder被误操作怎么的了。这个板卡还有别的方法可以挽救吗?

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: ESP32-DevKitc开发板烧写突然异常导致无法烧写

Postby ESP_@In逍遥子 » Fri Jun 21, 2019 12:47 pm

可以将这个板子寄过来吗?

Who is online

Users browsing this forum: No registered users and 20 guests