cancel
Showing results for 
Search instead for 
Did you mean: 

H743vit SDMMC2 not working

stive
Associate II

hi

i want to have both SDMMC 1 and 2

i test my project for SDMMC1 in 4bit sdio at 44MHz and no clock Div its work good single

but when i set SDMMC2 single with that not work

i change setting reduce frequency , use clock div , software pull up pins but it wait in F_mount and not work correctly

i check pinout of micro to micro sd for several time

but i can find whats problem i confuse...

14 REPLIES 14
stive
Associate II

sorry i cant edit last post to send file

i attach my code ...

i use sw4stm32

and use fatfs

all setting done in cube mx

Unfortunately "not working" is an overly broad failure mode.

Does it work in 1-bit mode?

Check pin configurations and clocks.

Sorry no hardware here to evaluate such a situation.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Couple of pins look to conflict with the debug interface.

Suggest you configure a USART so you can output telemetry/diagnostic data without the debugger attached.

PA0:CMD

PC1:CLK

PB14:D0

PB15:D1

PB3:D2

PB4:D3

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

i use serial wire ( 2 wire ) and no conflict with sdio2

thanks

it work in 1 bit mode in 44 mhz no clk div. but why?!!!

i need 4 bit for fast write

what can i do?

1-bit mode has a much lower functionality threshold. If 4-bit mode the signalling has to be clean, so you want matched trace-lengths, pull-up, etc.

I don't have a board or schematic for this.

Getting some independent code running would take a few hours.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

i have two board. in master just was sdio1 and i use another pcb for second micro sd.

wire between two board pin headers 20 CM. is that distance too much?

sorry i cant find any useful layout of boards to send

I probably wouldn't go over 6-7 cm. I haven't found a dual SDMMC board for the H7, the F779-EVAL has two.

Have you tried it off the debugger? PB3 is has potential to clash with SWO functionality.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

yes i test without debugger but not work in 4bit

Do you think the wire length should be halved?