2017-01-17 01:20 AM
Hello All,
I am interface a SD card with STM32f4 discovery board. i am use the SPI protocol for the same.I use the IAR IDE for the development.I need the example code for further development.
So, please share the example code for SD card interface with stm32f4 discovery using SPI protocol.
Any help would be highly appreciated in this case ?
Thanks,
Parth Modi
#fatfs #sd-card #stm32f4-discovery2017-01-17 01:29 AM
Hi
Modi.Parth
I have moved your question to the
where someone will be able to assist you.Thanks
Oli
2017-01-18 01:57 AM
Hi
Modi.Parth
,You can use the SPI examples provided in
or in order to correctly configure the SPI peripheral. Those examples are found following the paths below:Also, you can refer to the 'SDIO' examples:
Additionally, I advise you to have a look at 'stm32l152_eval_spi_sd.c' file provided for STM32L1 devices in
V1.3.1.May this help you.
Khouloud.
2017-01-23 02:49 AM
Hi
Khouloud,
Thanks for the support.
I tried the SDIO example code on the STM32F429 board for SD card interface, But this code is not work on STM32f429 board. So, I
made the SD card interface code for the STM32f4 discovery board from reference of the STM32f429 SDIO example code. I use the 1-bit SDIO mode for interface.I am use IAR IDE for the development.
I am get theFR_NOT_READY error on STM32f4 discovery board. I make the pin connection as the below.
stm32f4 microsd card
PD2----->command
PC12 ------------->clock
PC8-------------->data
vcc---------------->3.3
GND------------------>gnd
I have attached my code for your reference .
Please help to make this code work for me ?
Any help would be highly appreciate?
Thanks,
Parth
________________ Attachments : SDIO_1_BIT_SD.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hyth&d=%2Fa%2F0X0000000bEp%2F5oojKvhs6upvi7kfSPriUJccy_HLDceLDh7jmofGooc&asPdf=false2017-01-23 06:39 AM
Dear modi.parth
Pullup SDCard's DATA/CMD line by 47k~10kohm external resister.
Putting external pullup prevents bus floating.For more detail,see Physical Layer Simplified Specification.
https://www.sdcard.org/downloads/pls/
Best regards,
Nemui.