Memory Management in ESP_EYE_AI
Posted: Wed Aug 17, 2022 7:18 am
Hello,
I am looking forward to designing a product to run on an ESP_EYE_AI. So far I like what I have seen and found out via research, however, I'm having a bit of trouble finding simple answers to a few relatively simple questions. Please help me.
Project Scenario:
I am using ESP_EYE_AI board which have 4MB Flash and 8MB PSRAM. I would like to use OTA features & want to store two different codes in memory (Different version of code). And use that versions according to need. Suppose we have 3 version of codes V1, V2 and V3. I want to store V1 in memory and when we upload V2 it will also store in memory. But when we try to upload V3 then V1 will remove and V2 will take place of V1 and V3 will take place of V2.
Questions:
1. How to do partition and stores different versions of codes parallelly?
2. After Partition, how to call another version of code from a old version of code?
3. How to delete older version of code?
4. How to replace older version with newer version?
Thank you all very much for your help and patience!
I am looking forward to designing a product to run on an ESP_EYE_AI. So far I like what I have seen and found out via research, however, I'm having a bit of trouble finding simple answers to a few relatively simple questions. Please help me.
Project Scenario:
I am using ESP_EYE_AI board which have 4MB Flash and 8MB PSRAM. I would like to use OTA features & want to store two different codes in memory (Different version of code). And use that versions according to need. Suppose we have 3 version of codes V1, V2 and V3. I want to store V1 in memory and when we upload V2 it will also store in memory. But when we try to upload V3 then V1 will remove and V2 will take place of V1 and V3 will take place of V2.
Questions:
1. How to do partition and stores different versions of codes parallelly?
2. After Partition, how to call another version of code from a old version of code?
3. How to delete older version of code?
4. How to replace older version with newer version?
Thank you all very much for your help and patience!