Invalid Header when enabling flash encryption
Posted: Thu Mar 31, 2022 4:37 am
I am trying to enable flash encryption (without secure boot). Wrover E (16MB flash, 8MB spiram) with the aws freertos esp tool chain.
I have moved the partition table to 0xA000 and verified the system flashes and boots correctly (to make room for the bootloader).
I then did a menuconfig to set the encryption flag to build the encryption bootloader.
And then do a full erase and flash of all the binaries and I get continuous invalid header and reboots
Am I missing a step? Do I need to set a fuse manually somewhere?
I have moved the partition table to 0xA000 and verified the system flashes and boots correctly (to make room for the bootloader).
I then did a menuconfig to set the encryption flag to build the encryption bootloader.
Code: Select all
# Security features
#
# CONFIG_SECURE_SIGNED_APPS_NO_SECURE_BOOT is not set
# CONFIG_SECURE_BOOT is not set
CONFIG_SECURE_FLASH_ENC_ENABLED=y
# CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT is not set
CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE=y
Code: Select all
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
invalid header: 0x5be26a30
invalid header: 0x5be26a30
invalid header: 0x5be26a30
invalid header: 0x5be26a30
invalid header: 0x5be26a30
invalid header: 0x5be26a30
invalid header: 0x5be26a30
ets Jul 29 2019 12:21:46