cancel
Showing results for 
Search instead for 
Did you mean: 

I am using STM32H7A3 board. I am trying to integrate SD Card using SPI. I am getting FR_DISK_ERR when I try to do f_mount. Attached source code.

JJoy.1
Associate III

When i tried to give Pull ups for SPI pins except SPI1_SCK, i am getting FR_NOT_READY error.

I am completely stuck in this issue.

Please have a look into this and provide a solution for me.

Thanks in advance.

Jestina

15 REPLIES 15

I cant quite be sure on why either. Your code does look fine. Maybe play around a bit more with the clock speeds. The command you mention is supposed to put the SD card into "SPI/Idle state". I would double check or triple check your connections to the board. Are you using some sort of breakout board for the SD card? How is it wired?

JJoy.1
Associate III

Hi @devtty​  ,

Thanks for your update. I double checked the connections and could not find anything wrong. I am using a 6 pin SD card break out board and its wired using jumper wires.

Jestina

Hi, did you find something? i had that code running on a STM32F4 and worked fine, now with the STM32H7 i am not being able to make it work...

" But 9 pin SD break out board is not available in our country" ?¿?¿

https://www.sparkfun.com/products/12941

we dont need to firmware by ourselves, lets talk
JJoy.1
Associate III

Hi DCajigal,

PFA my code with SD card working in STM32H7A3.

Thanks,

Jestina

Thank you so much!