Running code from different flash partitions
Posted: Mon Feb 18, 2019 6:44 pm
Hi all!
I'm trying to understand if something like the following is possible to implement.
- I would like to have a small partition to store data like the device serial number, communication encryption keys, and other secret data. Think 1 kByte would be enough, encryption is required. What type of partition/mechanism would suit this?
- I would like to have another partition containing code that would be kept permanently on the device. This code would allow handling some of the hardware on the board, one could think it as being the low level drivers of the board. Guess something like 200 kByte would be enough, encryption is also required.
- The application code would be kept on a different location, this code would use the drivers on the previous partition. This partition would be updated via the serial bootloader with the esptool. Is there a way to use the code on the previous partition?
Any ideas on this?
Thanks a lot, cheers
Jean
I'm trying to understand if something like the following is possible to implement.
- I would like to have a small partition to store data like the device serial number, communication encryption keys, and other secret data. Think 1 kByte would be enough, encryption is required. What type of partition/mechanism would suit this?
- I would like to have another partition containing code that would be kept permanently on the device. This code would allow handling some of the hardware on the board, one could think it as being the low level drivers of the board. Guess something like 200 kByte would be enough, encryption is also required.
- The application code would be kept on a different location, this code would use the drivers on the previous partition. This partition would be updated via the serial bootloader with the esptool. Is there a way to use the code on the previous partition?
Any ideas on this?
Thanks a lot, cheers
Jean