Hi all,
I am using ESP32S3 and IDF version 5.0.7 for enabling both secure boot and flash encryption.
Previously have tried to do secure boot only and it worked well, have loaded that boot loader and application and all stuff work as expected.
After that Enabled required settings for Flash Encryption in development mode and compiled both boot loader and application again and flashed into board.
2025-04-25 15:34:02.230] I (1725) efuse: BURN BLOCK5 - OK (write block == read block)
[2025-04-25 15:34:02.230] I (1728) efuse: BURN BLOCK0
[2025-04-25 15:34:02.230] E (1733) efuse: BURN BLOCK0 - ERROR (written bits != read bits)
[2025-04-25 15:34:02.230] W (1738) efuse: BLOCK0: next retry to fix an error [1/3]...
[2025-04-25 15:34:02.230] I (1744) efuse: BURN BLOCK0
[2025-04-25 15:34:02.230] E (1749) efuse: BURN BLOCK0 - ERROR (written bits != read bits)
[2025-04-25 15:34:02.230] W (1754) efuse: BLOCK0: next retry to fix an error [2/3]...
[2025-04-25 15:34:02.230] I (1760) efuse: BURN BLOCK0
[2025-04-25 15:34:02.230] E (1765) efuse: BURN BLOCK0 - ERROR (written bits != read bits)
[2025-04-25 15:34:02.230] W (1770) efuse: BLOCK0: next retry to fix an error [3/3]...
[2025-04-25 15:34:02.230] E (1777) efuse: Written data are incorrect
[2025-04-25 15:34:02.264] I (1781) efuse: Batch mode. Prepared fields are committed
[2025-04-25 15:34:02.264] E (1787) flash_encrypt: Error programming security eFuses (err=0xffffffff).
[2025-04-25 15:34:02.264] E (1795) boot: Initialization of Flash Encryption key failed (-1)
[2025-04-25 15:34:02.264] E (1802) boot: Factory app partition is not bootable
[2025-04-25 15:34:02.264] D (1807) boot: Can't boot from zero-length partition
[2025-04-25 15:34:02.264] E (1812) boot: No bootable app partitions in the partition table
Please let me know if any step missed or any configuration needs to double check for resolving above error.
Regards,
Lalit
Failed to enable secure boot / encrypted flash
-
lalit.shah
- Posts: 15
- Joined: Mon Apr 14, 2025 6:46 am
Re: Failed to enable secure boot / encrypted flash
- Attachments
-
- 20250425_flash_encryp_logs.txt
- Error log in booting
- (25.43 KiB) Downloaded 10 times
Who is online
Users browsing this forum: Bing [Bot] and 1 guest