Forum Discussion

TomClary's avatar
TomClary
Copper Contributor
Dec 23, 2021

Using FileX on internal microcontroller flash

Any support or examples on using FileX on internal microcontroller flash?  I know there are complications in writing while executing from flash but some processors have hardware provisions to support this or other work arounds like running from SRAM while programming.  I am envisioning this for modest amounts of mainly configuration data or static web pages.

1 Reply

  • XiuwenCai's avatar
    XiuwenCai
    Former Employee

    Hi TomClary , there is no example for now. Here's the https://docs.microsoft.com/en-us/azure/rtos/filex/chapter5 about the I/O driver for FileX. The document may be helpful for you to implement a FileX I/O driver that accesses the internal flash of your MCU. Then you can read/write files on the internal flash using your driver and FileX. If your files are rewritten frequently, Azure RTOS https://github.com/azure-rtos/levelx can also be used in conjunction with FileX for wear leveling.

Resources