cancel
Showing results for 
Search instead for 
Did you mean: 

I can't connect a SD Card to my STM32F072 Discovery Board

Pablo Leibovich
Associate II
Posted on May 21, 2017 at 00:24

Hi all!

I'm trying to read/write data to an SD card from my STM32F072 Discovery board.

I configure SPI1 on CubeMx and the FatFs middleware. I've written the user_dsikio.c and the Input-Output functions based on the STM32F072 Eval board, but I can't make it work.

When I try to open a file, or format the SD, the microcontroller stops there and finishes at the Default_Handler, as I can see with the debugger.

Where can I find an example of a STM32F072 Discovery board with an SD?

Can anyone help me?

Thanks!!!!!!!!!!

#sd-card #stm32f072 #stm32f072-discovery
11 REPLIES 11
Posted on June 09, 2017 at 01:09

Great!

So it's really incorrect SPI polarity setting? Could you mark it as 'correct answer'?

Posted on June 09, 2017 at 02:31

Yes! it was incorrect!

Of course, I will mark it.

Thank you!