OTA Update with flash encryption. #16187
Replies: 3 comments 5 replies
-
Flash encryption does not inherently prevent OTA updates, but you need to use the ESP-IDF's secure boot and OTA update mechanisms correctly. |
Beta Was this translation helpful? Give feedback.
-
Could you please share how you use OTA update in mircopython? Thanks a lot |
Beta Was this translation helpful? Give feedback.
-
Hi @peetery — I came across your reply here while struggling with the exact same problem: enabling flash encryption for ESP32-C3 while using MicroPython. Your notes gave me hope that it's achievable since you mentioned getting it to work. I’m still running into some issues (specifically being able to init the wifi peripheral) and was wondering if you’d be open to clarifying a couple things or sharing how your final setup looked? Totally understand if you’re busy — just wanted to say thanks for the breadcrumbs, and if you do have a second to share more, it’d mean a lot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm wondering if it's possible to do the OTA updates with flash encryption on ESP32 with MicroPython?
At this point, I have my application implemented along with support for OTA updates and everything works perfectly fine - I have all my code frozen into the firmware. But I have doubts whether this is sufficient security for production to prevent someone from copying my micropython.bin image from flash. That's why I'm thinking about turning on flash encryption but I can't find enough information if it even works fine with OTA updates alongside.
I know that I can still disable the REPL completely, and would that combined with the frozen modules in the firmware be enough in terms of security or is flash encryption still necessary?
Beta Was this translation helpful? Give feedback.
All reactions