cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access SD Card using SDIO in F446RET6

Abin
Associate III

Hai all,

I am using SDIO protocol for interfacing SD card with STM42F446RE.But While accessing the SD card, I am facing the following issues.

1. Unable to access the card, even the card size , free space etc

2. Also unable to open directory, and files.

 

Here I am using SDIO 4bit bus mode. FATFS enabled with minimum sector size 512 and maximum 4096.

I tried with external pull up resistors of 10k in each data lines(D0 to D3) and CMD lines.

Bit still I am unable to connect with SD card,

Please help me

4 REPLIES 4
Andrew Neil
Evangelist III

What board is this on?

What software?

What testing/debugging/investigation have you done so far?

Please see the posting tips:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/ta-p/575228

 

I am using NUCLEO-F446RE (MB136 rev C) board.

I am using Cube IDE V1.16.1.

Actually I have done the following checking from my side.

-- This is initially I checked in NUCLEO l476RG using SDMMC with 4 bit mode and SPI it was working fine.

-- While I migrated to F446RE , I am facing the issue.

-- Here I kept the frequency as 180MHz and clock division in (SDIO CLock Div) as 4.Even I changed to 6, 8 etc.

-- Connected the SD card slot with each pin 10K pull up resistors externally, except for CLK line.

If I want to do anything else please tell me

Have you stepped through your code to see where, exactly, it is failing?

Have you used an oscilloscope or logic analyser to see what (if anything) is actually happening on the wires?

Compare & contrast what happens on the (working) NUCLEO l476RG and the (non-working) F446RE 

NUCLEO-F446RE hardware can't support SDIO directly.