Skip to main content
This topic has been closed for replies.
rohan_m
rohan_mBest answer
Associate III
April 3, 2024

I reduced the speed of the SDcard to 400kHz and mounted it on a nucleo board. Still did not do it on the custom board. I now have the feeling something is not right with the custom board. 

10 replies

mƎALLEm
ST Technical Moderator
March 8, 2024

Hello,

Try with 1 bit mode. If it does work see this thread.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
rohan_m
rohan_mAuthor
Associate III
March 8, 2024

The code fails only after :-

 if (HAL_SD_Init(&hsd) != HAL_OK)
 {
 Error_Handler();
 }
It fails in the HAL_SD_Init() only even after changing to 1B. 
AScha.3
Super User
March 8, 2024

So your hardware is not working .

What board : custom or nucleo ...?

Length of tracks cpu -- sdcard ?

+

try simple setup for beginning with sd-card:

- 1 bit mode

- no dma template

- port/pins : all on speed: medium + pullup on

 

 

If you feel a post has answered your question, please click on " Best Answer ".