cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 SDIO conflict with debuger opperations

Julien Bouille
Associate III

Hi everybody,

i m facing issues interfacing High Speed SD memory cards.

With low speed type SD card everything look to work well. But when i use fast cards, i got error reads.

The thing is that only appen if the debug is running. Without the debuger attached to my board no problemes appen when using High speed sd cards.

Any one understand what could make the debugger interfer with the application ? Is there somekind of blocking events or interrupt or clock instability because of it that could make the sd card crash ?

tanks.

23 REPLIES 23
Julien Bouille
Associate III

the timeout hypothesis was not correct, it was a debugger error.

Julien Bouille
Associate III

Probleme solved:

The clock signal was a bit dirty. I added a filter at the end of the clock signal

100ohm in series with 100pF connected to 3V3.

It work now like a charm.

Tanks you for helping :)

Julien Bouille
Associate III

Probleme solved:

The clock signal was a bit dirty. I added a filter at the end of the clock signal

100ohm in series with 100pF connected to 3V3.

It work now like a charm.

Tanks you for helping :)

You can perhaps also dial back the energy dumped into the pin

 /* Common GPIO configuration */

 gpio_init_structure.Mode     = GPIO_MODE_AF_PP;

 gpio_init_structure.Pull     = GPIO_PULLUP;

 gpio_init_structure.Speed    = GPIO_SPEED_HIGH; // <<<< SLEW RATE

 gpio_init_structure.Alternate = GPIO_AF12_SDIO;

Designs using eMMC typically put a 33R series resistor on the signal lines

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