MFS on top of MMC/SD drivers

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
heliochronix
Posts: 34
Joined: Thu Aug 31, 2017 6:32 pm
Has thanked: 8 times
Been thanked: 6 times

MFS on top of MMC/SD drivers

Postby heliochronix » Thu Sep 26, 2019 5:58 pm

Hello everyone,

I'm currently working on a project that would benefit greatly from the MFS complex driver. I'm trying to figure out if it's possible to use this with one of the SD/MMC drivers I have available for my platform to implement the MFS BaseFlash object. My platform is an STM32F446RE, so I believe my options for SD/MMC drivers are MMC-SPI and SDIO.

Is it possible to use either of these drivers with the MFS complex driver?

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: MFS on top of MMC/SD drivers

Postby Giovanni » Thu Sep 26, 2019 6:11 pm

Hi,

It would be possible but you would need to simulate a flat NOR flash on top of a block-based SD-MMC device and implement the flash interface. Wouldn't be easier to attach a SPI NOR flash?

In addition, you would need to enforce a 512 bytes alignment for MFS or write operations could be destructive in case of power loss.

Giovanni

steved
Posts: 825
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 135 times

Re: MFS on top of MMC/SD drivers

Postby steved » Thu Sep 26, 2019 8:52 pm

Have a look at https://github.com/ARMmbed/littlefs - it might be a more straightforward alternative to implement if it does what you want.

heliochronix
Posts: 34
Joined: Thu Aug 31, 2017 6:32 pm
Has thanked: 8 times
Been thanked: 6 times

Re: MFS on top of MMC/SD drivers

Postby heliochronix » Tue Oct 01, 2019 12:07 am

Hello,

That's a good point. Mostly we wanted to try it on MMC/SD for ease of swapping out and checking during the development/testing phase of our project. I'll take a look at littlefs to see if it'll work for us. The goal is to have redundant checksum'd firmware images and configuration information for subsystems on a satellite project.


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 20 guests