devicescript icon indicating copy to clipboard operation
devicescript copied to clipboard

document memory/flash requirements

Open pelikhan opened this issue 1 year ago • 2 comments

Probably in the device section and intro.

pelikhan avatar May 24 '23 18:05 pelikhan

@pelikhan is Flash Encryption for ESP32 chips supported?

If not, I'm wondering if we'd be able to activate Flash Encryption with ESP-IDF directly, and then keep developing with DeviceScript. I'm just unsure about idf.py encrypted-flash being supported in DeviceScript, since it seems like you have your own flash tooling.

The main concern is being able to securely store data on NVS with NVS Encryption enabled when provisioning a device for the first time, to, for example, store certificates and private keys used to authenticate against IoT cloud services.

aecorredor avatar May 24 '23 21:05 aecorredor

This one is for @mmoskal . For reference, the esp32 runtime is at https://github.com/microsoft/devicescript-esp32 and builds on top of ESP-IDF directly.

pelikhan avatar May 24 '23 21:05 pelikhan

The flash encryption Should-Just-Work(TM). We store user program in NVM but I think this is handled transparently. Having said that I have not tried...

mmoskal avatar Jun 01 '23 21:06 mmoskal