Flash SPIFFS partition only with Secure Boot enabled
Posted: Mon Jul 13, 2020 1:40 pm
The documentation is unclear on this, so I might ask here:
I'm developing a semi-protected FW for a product. I want to use at least the Secure Boot option to protect my binary.
However I'm also using the SPIFFs partition, for running JavaScript code from. The JavaScript apps will be developed by 3rd party devs,
I want to allow these devs to flash the SPIFFS partition with their JS code for testing, without touching the FW binaries.
I believe Secure Boot option enables this, and SPIFFs tools allow separate flashing of the partition, without disturbing the APP partition, but I'm unsure, if it causes any issue, or is actually allowed with Secure Boot. I also know that the Stage1 bootloader handles flashing in download mode, but it's not clear if reading the flash is possible from UART with SB mode enabled.
So question: Can this be done?
Thanks
Vader
I'm developing a semi-protected FW for a product. I want to use at least the Secure Boot option to protect my binary.
However I'm also using the SPIFFs partition, for running JavaScript code from. The JavaScript apps will be developed by 3rd party devs,
I want to allow these devs to flash the SPIFFS partition with their JS code for testing, without touching the FW binaries.
I believe Secure Boot option enables this, and SPIFFs tools allow separate flashing of the partition, without disturbing the APP partition, but I'm unsure, if it causes any issue, or is actually allowed with Secure Boot. I also know that the Stage1 bootloader handles flashing in download mode, but it's not clear if reading the flash is possible from UART with SB mode enabled.
So question: Can this be done?
Thanks
Vader