cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring FATFS-SDMMC1-DMA on STM32L4R5... in STM32CubeMX

FGese
Associate

Hi guys,

I have a question about my project with STM32L4R5ZIT6.

I want to use the SDMMC1 peripheral together with the FAT-file system to write some logging data on a sd card.

After several failed tries to write a test-file on the sd card with the FAT functions f_open...f_write I think there is a problem with the lower level driver (sdmmc1).

I searched for some solutions in this community.

There I found some topics near the same I have.

(https://community.st.com/s/question/0D50X00009XkWAsSAN/sdmmc-on-stm32-l476-l4)

(https://community.st.com/s/feed/0D70X000006SpXHSA0)

They had attached some configuring files for the CubeMX and inside them there was a possibility to configure the dma working together with the sdmmc1 peripheral. In my CubeMX project there is no possibility to link the dma and the sdmmc1 peripheral.

Is there any possibility to get this working?

I don't want to code all from the datasheet so maybe there are some examples or something.

Kind regards,

felix

1 REPLY 1

>>Is there any possibility to get this working?

I did it without CubeMX, using the HAL code as a basis.

Unfortunately the L4 series has a couple of SDMMC IP implementations.

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