Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
2 years, 3 months ago.
About filesystem and writing own block driver
I am trying to write my own block driver for parallel NOR flash device, but there is lack of documentation on how to make your own block device driver. Can someone give me a brief idea or example to write own block driver and implement on mbed FATfs?
2 years, 2 months ago.
You're right our documentation on how to write your own block device driver is lacking. The best I can say right now is that we are currently working on this.
At the moment the best starting point is to extend the BlockDevice class and implement the abstract methods:
You can also use the SPI NOR flash driver in Mbed OS as a starting point:
Once you have a working block device, you should be able to plug it into the filesystem example to start using the filesystems inside Mbed OS: