Access partition example
Posted: Tue Sep 25, 2018 8:01 pm
Hello, I'm looking for example code that allows me:
- to random access bytes within the partition (with caching, as code has)
- to write the partition from the start up to some size (basically store a file in it)
So this partition should act and feel like constants, similar to const in code. It is basically just some code that is constant between OTA's.
Despite this seemingly being a common request, I could not find any direct answers (and only suggestions, no code).
Use case: I need to store up to 300k of fonts (my partition is 300k and is named "fonts"). Thanks!
- to random access bytes within the partition (with caching, as code has)
- to write the partition from the start up to some size (basically store a file in it)
So this partition should act and feel like constants, similar to const in code. It is basically just some code that is constant between OTA's.
Despite this seemingly being a common request, I could not find any direct answers (and only suggestions, no code).
Use case: I need to store up to 300k of fonts (my partition is 300k and is named "fonts"). Thanks!