求助!esp32s3 设置eFuse bit后,程序再也无法烧录

yuge1201
Posts: 2
Joined: Sun Apr 02, 2023 2:07 pm

求助!esp32s3 设置eFuse bit后,程序再也无法烧录

Postby yuge1201 » Mon Apr 03, 2023 4:02 am

### 开发环境
开发板: ESP32-S3-DevKitC-1 v1.0,仅仅连接一个COM口,pin脚全部未连接。
ESP-IDF版本:V5.0.1
系统:Windows
IDE: vs code

### 问题描述
起初程序下载运行正常,然后想测试下 Octal Flash 与PSRAM的速度,然后参照官网连接开启了 : CONFIG_ESPTOOLPY_OCT_FLASH,
但是报错:Octal Flash option selected, but EFUSE not configured!

在搜索后,参照https://docs.espressif.com/projects/esp ... r-handling 说明,设置了eFuse bit:

Code: Select all

python3 ./espefuse.py -p /dev/<serial_device> --do-not-confirm burn_efuse FLASH_TYPE 1
设置成功后,代码再也无法下载,下载命令以及Log信息如下:

Code: Select all

C:\Users\yuge\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:\Users\yuge\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM12 -b 115200 --before default_reset --after hard_reset --chip esp32s3 write_flash --flash_mode dout --flash_freq 80m --flash_size detect 0x0 bootloader/bootloader.bin 0x10000 qv500.bin 0x8000 partition_table/partition-table.bin
Log:
esptool.py v4.5.1
Serial port COM12
Connecting....
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e8:04:7c
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 8MB
Flash will be erased from 0x00000000 to 0x00005fff...
Flash will be erased from 0x00010000 to 0x00041fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 20864 bytes to 13303...
Wrote 20864 bytes (13303 compressed) at 0x00000000 in 1.7 seconds (effective 99.3 kbit/s)...
File md5: fc90338226dd4e9c4e5af182fec52653
Flash md5: b145c0e952abec491d69c8c5f8ac47c4
MD5 of 0xFF is b145c0e952abec491d69c8c5f8ac47c4
A fatal error occurred: MD5 of file does not match data in flash!

随后参考网上资料,查看状态:

Code: Select all

C:\Users\yuge\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:\Users\yuge\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM12 -b 115200 read_flash_status
Log:
esptool.py v4.5.1
Serial port COM12
Connecting....
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e8:04:7c
Uploading stub...
Running stub...
Stub running...
Status value: 0x0200
Hard resetting via RTS pin...

Code: Select all

C:\Users\yuge\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:\Users\yuge\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM12 -b 115200 flash_id
Log:
esptool.py v4.5.1
Serial port COM12
Connecting....
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e8:04:7c
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 4017
Detected flash size: 8MB
Flash type set in eFuse: octal (8 data lines)
Hard resetting via RTS pin...

并设置:

Code: Select all

C:\Users\yuge\.espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe C:\Users\yuge\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM12 write_flash_status --non-volatile 0
Log:
esptool.py v4.5.1 Serial port COM12
Connecting....
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 7c:df:a1:e8:04:7c
Uploading stub...
Running stub...
Stub running...
Initial flash status: 0x0200
Setting flash status: 0x0000
After flash status: 0x0200
Hard resetting via RTS pin...

最终还是没有解决问题,下载依然报错:
A fatal error occurred: MD5 of file does not match data in flash!

是因为芯片损坏了么?

yuge1201
Posts: 2
Joined: Sun Apr 02, 2023 2:07 pm

Re: 求助!esp32s3 设置eFuse bit后,程序再也无法烧录

Postby yuge1201 » Tue Apr 04, 2023 1:40 am

原因查到了,是因为N8R8的芯片不是8线的flash,而是4线Flash, 8线psram,所以不需要烧录那个eFuse bit。但是我已经烧录了,导致程序无法下载,所以这个板子应该已经废了。

Who is online

Users browsing this forum: No registered users and 61 guests