microsoft / devicescript

TypeScript for Tiny IoT Devices (ESP32, RP2040, ...)
https://microsoft.github.io/devicescript/
MIT License
3.28k stars 118 forks source link

document memory/flash requirements #397

Closed pelikhan closed 1 year ago

pelikhan commented 1 year ago

Probably in the device section and intro.

aecorredor commented 1 year ago

@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.

pelikhan commented 1 year ago

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.

mmoskal commented 1 year ago

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...