You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run "espefuse.py summary," it displays what appears to be the basic fabric configuration settings.
Nothing is changed before trying to burn the flash key.
Other Steps to Reproduce
I Have Read the Troubleshooting Guide
I confirm I have read the troubleshooting guide.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
burn_key operation gives Burn BLOCK_KEY0 (['BLOCK4']) was not successful
burn_key operation gives Burn BLOCK_KEY0 (['BLOCK4']) was not successful (ESPTOOL-986)
Jan 9, 2025
Hi @Daphne-HU!
The command is correct. If nothing is changed then the problem is likely hardware-related. You can try programming it into a different BLOCK_KEY.
Possible hardware-related issues:
ESD (Electrostatic Discharge): Ensure proper handling and grounding to prevent damage.
Weak Power Supply: Verify the power supply's stability and ensure it meets the ESP32-C3's voltage and current requirements.
I have attempted the suggested solutions, including using different power supplies and PCBs, but the issue persists. I also tried programming a different BLOCK_KEY without success. Could there be other potential causes or solutions to this problem?
on a new device i tried writing with no read and write protect:
Keys will remain writeable (due to --no-write-protect)
Keys will remain readable (due to --no-read-protect)
Check all blocks for burn...
idx, BLOCK_NAME, Conclusion
[00] BLOCK0 is not empty
(written ): 0x000000008000000000000000000000000000000000000000
(to write): 0x000000000000000000000400000000000000000000001000
(coding scheme = NONE)
[08] BLOCK_KEY4 is empty, will burn the new value
.
This is an irreversible operation!
Type 'BURN' (all capitals) to continue.
BURN
Error in BLOCK8, re-burn it again (#0), to fix it. fail_bit=1, num_errors=0
Error in BLOCK8, re-burn it again (#1), to fix it. fail_bit=1, num_errors=0
Error in BLOCK8, re-burn it again (#2), to fix it. fail_bit=1, num_errors=0
A fatal error occurred: Burn BLOCK_KEY4 (['BLOCK8']) was not successful
A bit more than half of the key is written correctly in BOCK8 / BLOCK_KEY4
under in the summary:
Error(s) in BLOCK8 [ERRORS:0 FAIL:1]
Operating System
Xubuntu 20.04 (under WSL)
Esptool Version
4.7.0
Python Version
3.8.10
Chip Description
esp32-C3-mini-1
Device Description
Chip is on a custom PCB
Hardware Configuration
When relevant i can provide pin configurations
How is Esptool Run
Visual studio code
Full Esptool Command Line that Was Run
espefuse.py --debug burn_key BLOCK_KEY0 flash_encryption_key.bin XTS_AES_128_KEY
Esptool Output
More Information
I followed the documentation as noted here, under Using Host Generated Key:
https://docs.espressif.com/projects/esp-idf/en/release-v5.1/esp32c3/security/flash-encryption.html
When I run "espefuse.py summary," it displays what appears to be the basic fabric configuration settings.
Nothing is changed before trying to burn the flash key.
Other Steps to Reproduce
I Have Read the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: