2020-12-09 06:07 AM
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
2020-12-09 07:17 AM
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.
2020-12-09 10:09 PM
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