Using LittleFS with mx25r64 and nRF Connect VS Code

I may be misunderstanding my issue but, in essence, I believe I'm experiencing the same thing as the poster here:  With nRF5340 : How to use internal and external flash both as Littlefs to store data 

However, in my case I'm reluctant to introduce a pm_static.yml file as I believe all of that is currently being generated by the nRF Connect for VS Code build system.  Is there a way I can simply append the info about the external file system or do I really have to do it all "by hand" just to introduce the external file system?  Currently I am using dual image MCUBoot, BLE settings, and app settings.  I would really rather not reproduce all that info if possible.

Parents
  • Hello,

    You can use the CONFIG_PM_PARTITION_REGION_LITTLEFS_EXTERNAL symbol to tell the partition manager to place your littlefs partition in external flash. There is also the CONFIG_PM_PARTITION_SIZE_LITTLEFS symbol which lets you adjust the size of the partition. This does not require a static partition file. 

    Here is the memory layout I got when I tested this with a project built for the nrf52840dk_nrf52840 board.

    Best regards,

    Vidar

  • Sorry, I should have been more clear. Similar to the referenced post I want to leave the MCUBoot images and settings on internal flash. I want to dedicate the external flash to storing user data. Unfortunately I’m away from my computer at the moment but I’ll try to look more closely at the config items you sent. 

    Thank you

Reply Children
Related