Each step looks correct but you are missing some steps between (2) and (3). After you burn the flash encryption key, the first time you flash you need to flash a plaintext bootloader and a plaintext app. The ESP32 will encrypt itself on the first boot.snahmad75 wrote:1-
espsecure.py generate_flash_encryption_key acti_flash_encryption_key.bin
2-
espefuse.py --port COM155 burn_key flash_encryption acti_flash_encryption_key.bin
3-
espsecure.py encrypt_flash_data --keyfile acti_flash_encryption_key.bin --address 0x10000 -o ./build/app-encrypted.bin ./build/app-template.bin
4-
esptool.py --port COM155 --baud 115200 write_flash 0x10000 ./build/app-encrypted.bin
Are these steps correct. Am I missing any steps?
The steps are laid out in more detail here:
http://esp-idf.readthedocs.io/en/latest ... yption-key
(The missing part is under the heading "First Flash with pregenerated key".)