cancel
Showing results for 
Search instead for 
Did you mean: 

stm32f746g_Disco bard sdcard raw block write read example through sdmmc Interface?

Sindhu Vadde
Associate III

Hi

we are using stm32f746g-disco board.we want to write and read into SDcard through sdmmc interface.We are using following HAL drivers for SDcard write read.

we are filling values to W_buff.

HAL_SD_WriteBlocks(&hsd1,W_buff,0x00,1,0xFF);

HAL_SD_Readblocks(&hsd1,R_buff,0x00,1,0xFF);

But in both write read cases we are gettings erros like HAL_ERROR.

Can anyone provide sdcard raw block write read example through sdmmc interface?

And is there any specifications for Sdcard?

3 REPLIES 3
KDJEM.1
ST Employee

Hi @Sindhu Vadde​ ,

I recommend you to have a look at this example may help you in your implementation.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

D-cache enabled, MPU does not disable caching, cache maintenance functions are not used and you expect that "example" to work? I recommend ST to stop presenting a dysfunctional junk written by completely incompetent "developers" as an examples.

Hi,

Thanks for the reply

you are given repository example its working fine. But the example is using fat fs file system. we need to write and read to sdcard without filesystem.