secure boot and flash encryption error when enabling together

chandramauli
Posts: 5
Joined: Tue May 21, 2024 6:45 am

secure boot and flash encryption error when enabling together

Postby chandramauli » Tue May 21, 2024 6:55 am

Hello,

I am trying to enable secure boot and flash encryption together in ESP32-S3 with below macros. In this configuration development mode is enabled for both.

Code: Select all

CONFIG_SECURE_SIGNED_ON_BOOT=y
CONFIG_SECURE_SIGNED_ON_UPDATE=y
CONFIG_SECURE_SIGNED_APPS=y 
CONFIG_SECURE_BOOT_V2_RSA_SUPPORTED=y
CONFIG_SECURE_BOOT_V2_PREFERRED=y
CONFIG_SECURE_BOOT_V2_RSA_ENABLED=y
CONFIG_SECURE_SIGNED_APPS_RSA_SCHEME=y
CONFIG_SECURE_BOOT=y
CONFIG_SECURE_BOOT_V2_ENABLED=y
CONFIG_SECURE_BOOT_BUILD_SIGNED_BINARIES=y
CONFIG_SECURE_BOOT_SIGNING_KEY="secure_boot_signing_key.pem"
CONFIG_SECURE_BOOT_ENABLE_AGGRESSIVE_KEY_REVOKE=n
CONFIG_SECURE_BOOT_INSECURE=y
CONFIG_SECURE_ROM_DL_MODE_ENABLED=y
CONFIG_SECURE_ENABLE_SECURE_ROM_DL_MODE=y
CONFIG_ESPTOOLPY_NO_STUB=y
CONFIG_SECURE_FLASH_ENC_ENABLED=y
CONFIG_SECURE_FLASH_ENCRYPTION_AES128=y
CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT=y
CONFIG_SECURE_FLASH_HAS_WRITE_PROTECTION_CACHE=y
CONFIG_SECURE_FLASH_UART_BOOTLOADER_ALLOW_ENC=y
CONFIG_SECURE_FLASH_SKIP_WRITE_PROTECTION_CACHE=y
CONFIG_SECURE_FLASH_CHECK_ENC_EN_IN_APP=y
CONFIG_SECURE_INSECURE_ALLOW_DL_MODE=y
CONFIG_FLASH_ENCRYPTION_ENABLED=y
CONFIG_FLASH_ENCRYPTION_INSECURE=y
CONFIG_FLASH_ENCRYPTION_UART_BOOTLOADER_ALLOW_ENCRYPT=y
CONFIG_NVS_ENCRYPTION=n
Secure boot is successfully enabled in the device but not able to enable flash encryption. I am not able to read efuse values as it shows "A fatal error occurred: Secure Download Mode is enabled. The tool can not read eFuses."
I have flashed bootloader,partition table and application binaries with esptool.py tool at specific location.
Can someone help to follow exact steps to avoid device breaking up? I am clueless for the new implementation.

Regards,
Chandramauli

liaifat85
Posts: 200
Joined: Wed Dec 06, 2023 2:46 pm

Re: secure boot and flash encryption error when enabling together

Postby liaifat85 » Tue May 21, 2024 6:20 pm

Did you check here for answers?
https://esp32.com/viewtopic.php?f=13&t=33828

chandramauli
Posts: 5
Joined: Tue May 21, 2024 6:45 am

Re: secure boot and flash encryption error when enabling together

Postby chandramauli » Wed May 29, 2024 11:51 am

Hi

Yes, I had a chance to visit this but didn't find any useful information for my case. can anyone help me with exact steps to be followed to enable flash encryption and secure boot together in ESP32-S3?

Regards,
Chandramauli

Who is online

Users browsing this forum: No registered users and 314 guests