Skip to content

dilshan/sdfatlib

Repository files navigation

Actions Status

SD card extension for OpenFAT library

This repository contains SD/MMC card driver for the OpenFAT library. The SD card driver implements on top of the LibOpenCM3 library and, it supports for STM32 - ARM Cortex-M3 series of MCUs.

In the default configuration, the SD card driver uses the SPI2 peripheral of the MCU for SD card interfacing. The PORTA pin 8 is used to issue the chip-select (CS) signal.

Building the library

GNU ARM Embedded toolchain is the most recommended toolchain to build this library.

To build the entire project, use the make command.

Test Setup

Schematic of the test setup

Required hardware modules for the test setup:

The CH340 UART to USB converter is an optional module and is used to monitor the debug logs generated by the library.

In the default configuration, the debug logs are disabled in the Make file. To enable the debug logs, compile and build the test application with the DEBUG_LOG preprocessor option.

License

The code is released under the terms of the GNU General Public License (GPL), version 3 or later.