ESP32-C3 无法关闭加密。

physton
Posts: 1
Joined: Sun Sep 29, 2024 3:20 pm

ESP32-C3 无法关闭加密。

Postby physton » Sun Sep 29, 2024 3:30 pm

买了3片"新"的ESP32-C3FH4,正常烧录成功,会报错:

Code: Select all

esptool.py v4.5.1
Serial port /dev/cu.usbserial-1140
Connecting....
Chip is ESP32-C3 (revision v0.3)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 10:91:a8:e3:13:30
Uploading stub...
Running stub...
Stub running...
Configuring flash size...

A fatal error occurred: WARNING: Detected flash encryption enabled and download manual encrypt disabled.
Flashing plaintext binary may brick your device! Use --force to override the warning
通过添加 --force 参数后可以烧录进去,芯片日志一直是 invalid header: 0x97df56ec

查阅官方问题,发现可以通过以下命令实现关闭加密:

Code: Select all

espefuse --port /dev/cu.usbserial-1140 burn_efuse SPI_BOOT_CRYPT_CNT
但是执行后,还是有报错:

Code: Select all

espefuse.py v4.7.0
Connecting...
Detecting chip type... ESP32-C3

=== Run "burn_efuse" command ===
The efuses to burn:
  from BLOCK0
     - SPI_BOOT_CRYPT_CNT

Burning efuses:

    - 'SPI_BOOT_CRYPT_CNT' (Enables flash encryption when 1 or 3 bits are set and disables otherwise) 0b001 -> 0b011

A fatal error occurred: 	SPI_BOOT_CRYPT_CNT is write-protected. Burn is not possible.
也试过其他的命令,但都是提示参数无效,只有 burn_efuse SPI_BOOT_CRYPT_CNT 能够运行,但是会出现上诉错误。

Code: Select all

espefuse --port /dev/cu.usbserial-1140 burn_efuse FLASH_CRYPT_CNT
espefuse --port /dev/cu.usbserial-1140 set_flash_encryption_disabled
也尝试强制清理过flash,但都无效,芯片一直是加密状态。
所有命令均在下载模式中执行的:

Code: Select all

rst:0x1 (POWERON),boot:0x7 (DOWNLOAD(USB/UART0/1))
waiting for download
实在找不到解决办法了,请大佬解答帮忙,感谢!

Who is online

Users browsing this forum: No registered users and 172 guests