Clarification required regarding encrypted flash bootloader address
Posted: Fri Feb 16, 2024 12:03 pm
Within the Espressif documentation titled, "Enable Flash Encryption Externally" [1], is a series of commands for encrypting binaries on a host machine. The first command encrypts a bootloader image using address "0x1000". I am confused by the use of this address in the example. It is my understanding that "0x1000" is the address of the first-stage bootloader and "0x0" is the address of the second-stage bootloader. An unencrypted bootloader.bin created during the build process of a firmware application would be flashed to the second-stage address (0x0). Yet, in this flash encryption example we seem to be assigning this bootloader.bin to the primary address (0x1000).
Why would a non-encrypted bootloader.bin be flashed to 0x0 whereas an encrypted flash writes bootloader.bin to 0x1000? Is this a bug in documentation? Please clarify.
Thanks
[1] https://docs.espressif.com/projects/esp ... externally
Why would a non-encrypted bootloader.bin be flashed to 0x0 whereas an encrypted flash writes bootloader.bin to 0x1000? Is this a bug in documentation? Please clarify.
Thanks
[1] https://docs.espressif.com/projects/esp ... externally