2017-05-20 03:24 PM
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-discoverySolved! Go to Solution.
2017-06-08 06:09 PM
Great!
So it's really incorrect SPI polarity setting? Could you mark it as 'correct answer'?
2017-06-08 07:31 PM
Yes! it was incorrect!
Of course, I will mark it.
Thank you!