FATFS is a middleware component you can add to create a MicroSD API with full file I/O support. It only takes a few clicks with CubeMX and you have an API with the following and more: f_mount(): Register/Unregister a work area f_open(): Open/Create a file f_close(): Close a file f_read(): Read a file f_write(): Write…