Description: The other night I was able to get my STM32F4DISCOVERY board to read and write files on an SD card formatted with the FAT filesystem. While I haven t done extensive testing of my code, I m comfortable enough to share what I have with the world. Writing to a filesystem is obviously a convenient feature in many projects. Here s how you can do it with an STM32F4 processor. What follows is the long story you can find my code at the end of the post.
To Search:
File list (Check if you may need any files):
SPI PC\Archive\2014.2.12 21.19.35.txt
......\Calibration\Копия Акселерометр на 200ж.txt
....MK\CMSIS\Device\ST\STM32F4xx\Release_Notes.html
......\STM32F4xx_StdPeriph_Driver\Release_Notes.html
....PC\System\acc200.ini
......\......\Device200.ini
....MK\User\inc\Flash.h
......\....\...\main.h
......\....\...\mcu_ini.h
......\STM32F4xx_StdPeriph_Driver\inc\misc.h
......\User\inc\SPI.h
......\CMSIS\Device\ST\STM32F4xx\Include\stm32f4xx.h
......\STM32F4xx_StdPeriph_Driver\inc\stm32f4xx_adc.h
......\..........................\...\stm32f4xx_can.h
......\..........................\stm32f4xx_conf.h
......\..........................\inc\stm32f4xx_crc.h
......\..........................\...\stm32f4xx_cryp.h
......\..........................\...\stm32f4xx_dac.h
......\..........................\...\stm32f4xx_dbgmcu.h
......\..........................\...\stm32f4xx_dcmi.h
......\..........................\...\stm32f4xx_dma.h
......\..........................\...\stm32f4xx_dma2d.h
......\..........................\...\stm32f4xx_exti.h
......\..........................\...\stm32f4xx_flash.h
......\..........................\...\stm32f4xx_fmc.h
......\..........................\...\stm32f4xx_fsmc.h
......\..........................\...\stm32f4xx_gpio.h
......\..........................\...\stm32f4xx_hash.h
......\..........................\...\stm32f4xx_i2c.h
......\..........................\...\stm32f4xx_iwdg.h
......\..........................\...\stm32f4xx_ltdc.h
......\..........................\...\stm32f4xx_pwr.h
......\..........................\...\stm32f4xx_rcc.h
......\..........................\...\stm32f4xx_rng.h
......\..........................\...\stm32f4xx_rtc.h
......\..........................\...\stm32f4xx_sai.h
......\..........................\...\stm32f4xx_sdio.h
......\..........................\...\stm32f4xx_spi.h
......\..........................\...\stm32f4xx_syscfg.h
......\..........................\...\stm32f4xx_tim.h
......\..........................\...\stm32f4xx_usart.h
......\..........................\...\stm32f4xx_wwdg.h
......\CMSIS\Device\ST\STM32F4xx\Include\system_stm32f4xx.h
......\User\src\Flash.c
......\....\...\main.c
......\....\...\mcu_ini.c
......\STM32F4xx_StdPeriph_Driver\src\misc.c
......\User\src\SPI.c
......\STM32F4xx_StdPeriph_Driver\src\stm32f4xx_adc.c
......\..........................\...\stm32f4xx_can.c
......\..........................\...\stm32f4xx_crc.c
......\..........................\...\stm32f4xx_cryp.c
......\..........................\...\stm32f4xx_cryp_aes.c
......\..........................\...\stm32f4xx_cryp_des.c
......\..........................\...\stm32f4xx_cryp_tdes.c
......\..........................\...\stm32f4xx_dac.c
......\..........................\...\stm32f4xx_dbgmcu.c
......\..........................\...\stm32f4xx_dcmi.c
......\..........................\...\stm32f4xx_dma.c
......\..........................\...\stm32f4xx_dma2d.c
......\..........................\...\stm32f4xx_exti.c
......\..........................\...\stm32f4xx_flash.c
......\..........................\...\stm32f4xx_fmc.c
......\..........................\...\stm32f4xx_fsmc.c
......\..........................\...\stm32f4xx_gpio.c
......\..........................\...\stm32f4xx_hash.c
......\..........................\...\stm32f4xx_hash_md5.c
......\..........................\...\stm32f4xx_hash_sha1.c
......\..........................\...\stm32f4xx_i2c.c
......\..........................\...\stm32f4xx_iwdg.c
......\..........................\...\stm32f4xx_ltdc.c
......\..........................\...\stm32f4xx_pwr.c
......\..........................\...\stm32f4xx_rcc.c
......\..........................\...\stm32f4xx_rng.c
......\..........................\...\stm32f4xx_rtc.c
......\..........................\...\stm32f4xx_sai.c
......\..........................\...\stm32f4xx_sdio.c
......\..........................\...\stm32f4xx_spi.c
......\..........................\...\stm32f4xx_syscfg.c
......\..........................\...\stm32f4xx_tim.c
......\.............