Hi,
with several sources for AVR and STM32 I've got a solution for reading and writing FAT32 compatible file system with STM32 modified PRIMER I.
The FAT-File-System is able in A3670.zip written for AVR-controller. The sources are usable under GNU public licence and some changes are nesesaray.
The below address is not longer working but the zip file is available.
http://www.circuitcellar.com/avr2004/wentries/A3670.zip
read.pudn.com/downloads40/sourcecode/windows/vxd/139966/A3670/firmware V1.00/main.c__.htm
- this link is not zip but the source code from the main.c that demonstrates the capability of the FAT-system.
The SPI-drivers (STM32) for MMC/SD-Card was written by Frank Goetze - www.embedded-os.de and the rights for using the sources must be cleared by them.
USART1 was used to communicate with PRIMER via hterm or similar terminalprograms using a XPORT and com port redirection.
A subset of current commands are possible eg. md, cd, del, copy, creating files and write to it, hd_info, cluster dumps etc.. The tested SD-card has a capacity about 1 GB, only working on normal SD-format not on SD-HC.
Greetings from Hannover- Klausi