We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi Community,
I note that Keil Middleware File System Component supports many types of FLASH storage devices (http://www.keil.com/pack/doc/mw/FileSystem/html/fs_operation.html#drive), however the supported devices are external from the MCU itself (USB drive, SD card, external NOR/NAND flash chip connected over SPI or a bus).
Instead, I would like to use the internal (NOR) FLASH of the MCU (in my case, STM32L471). It would require a low-level driver to read/erase/write the internal FLASH. I thought this might be common given large FLASH sizes available, but I did not find much discussion here or elsewhere specifically about internal FLASH file system.
Is there a reason this is not a common approach?
What I'd like is a basic embedded file system (no directory or long file name support, and only a few files) which would permit store/retrieve/update of various length strings and parameters, from some high level API (like f_open(), f_read(), f_write(), etc.) I intended to store parameters in ASCII and use string conversion functions to translate parameters to integer/floating point values etc. with specific reserved character used as delimiter between parameter keys and corresponding values.
I would appreciate to hear some recommendations on good approach for doing this. Do people find a high level interface unnecessary for basic key/value storage and lookup and instead write their own custom interface? Are there examples of good implementations of that online?
Thanks for suggestions!