Skip to main content
tameralamiri
Visitor II
May 30, 2016
Question

interfacing uSD reader with STM32F0

  • May 30, 2016
  • 2 replies
  • 1072 views
Posted on May 31, 2016 at 00:55

Hello guys,

i'm new in programming stm32f0. I have stm32f091rc and i want to interface uSD using SPI peripheral. first i used stm32cubemx to select the SPI1 peripheral and configured the clock. then i exported the generated HAL libraries to uVision IDE. but i don't know how to continue.

I read that first i need to write i/o driver APIs then link these APIs with FATfs

but i wasn't able to find any example similar to my project (using HAL libraries- uVision and STM32F0)

I coded the SPI transmit and receive functions in blocking mode. but what are the other functions to initialize the sd card and check it's status? and how can i use them with SPI and FatFs.

Thanks in advance

#stm32f0 #spi #stm32 #uvision #usd
This topic has been closed for replies.

2 replies

Trilys
Associate II
May 31, 2016
Posted on May 31, 2016 at 13:42

Hello,

I am pretty sure you are not in the right forum section, but here are some pointers. I advise you to find examples for more advanced MCUs. There is a SPI SD example for F3 devices, but the code only works for non sdhc/sdxc cards. There is a version that also works with these larger cards in the F4 or F7 library. If I am right, you need to reuse the fatfs and sd driver and rewrite the BSP driver for your MCU

Walid FTITI_O
Visitor II
May 31, 2016
Posted on May 31, 2016 at 17:55

Hi the.green.beret,

Try to put your STM32 related request in the relevant forums which are :

-Hannibal-