Skip to main content
AKuma.24
Associate
December 9, 2020
Question

Interfacing 4-bit SDIO with STM32L452 Nucleo board

  • December 9, 2020
  • 2 replies
  • 891 views

Hi,

I am trying to interface 4-bit SDIO with STM32L452 Nucleo board.

So far, I have tried CubeMx and SDFAT library, but it doesn't seem to work.

I have tried same interfacing and library with other variants(STM32F407) and its working fine.

Is there any issue with DMA, as I have come across few thread on the community forum??

Please, recommend me any resource, guide or tutorial.

Regards,

Anurag

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
December 9, 2020

The L4 is an odd family, at least 3 different SDMMC implementations as I recall.

Plumbing of DMA different. Someone at ST realized at some point that the bus transactions are half-duplex, and TWO DMA resources aren't actually needed. And at some other point the DMA was integrated.

There is often a working example for the DISCO/EVAL series boards which can be ported.

Definitely had SDMMC running on the NUCLEO-L452RE for clients.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
AKuma.24
AKuma.24Author
Associate
December 10, 2020

Hi Clive,

Thanks for your reply.

There are 3 DMA available, as SDMMC1, SDMMC1RX and SDMMC1TX in CubeMX.

When I tried SDMMC1 option, Read operation is working fine, but write operations are not working and I even write function is stuck somewhere.

So, should I use SDMMC1, SDMMC1RX and SDMMC1TX??

What do you mean by half duplex??

Can anyone please point me towards working example of DICO/EVAL board, which I can port to L4.

Regards,

Anurag