cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L451 - eMMC CRC error at init when reading ExtCSD

thinkerfox_seb
Associate

Hello,

I'm working on a custom board with a STM32L451 and an emmc (THGBMNG5D1LBAIL - 4gb). At initialization (using the HAL generated init functions), I get the CID and CSD but not the ExtCSD. I get a CRC error (in polled mode as well as in DMA mode). Since it is at the initialization, I cannot change a lot of settings...(main clock is at 80Mhz but at lower clock value I get the same issue) I've seen that I need to set "half-word" in the DMA settings in order to have a same alignment as in polled mode...But obviously doesn't help since I get the same error in both cases... (with or without misalignment)

Do you have any idea on what direction I could look at?

 

Thanks a lot!

 

clock config:

thinkerfox_seb_0-1742812127260.pngthinkerfox_seb_1-1742812135403.png

SDMMC settings:

thinkerfox_seb_2-1742812174989.pngthinkerfox_seb_3-1742812197635.png

 

0 REPLIES 0