cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure FatFs with DMA on STM32L5 using CubeMx.

DYann.1
Senior II

Hello, 

I would like to have advice, I see this video about SD Card :

https://www.youtube.com/watch?v=I9KDN1o6924&t=359s

And in the video (5:30) I can see DMA tab via CubeMX

DYann1_0-1736510553492.png

But with me I don't have this tab, do you know why ?

DYann1_1-1736510815033.png

I have STM32L552E-EV Evaluation Board with STM32L552ZET6QU microcontroller, after me It's possible to have the DMA with SD Card.
I have this Version: 1.13.1 for STM32CubeIDE

Thank you for your helps.

Regards

7 REPLIES 7

Do you really need DMA?

Maybe simpler to start without DMA first?

 


@DYann.1 wrote:

I have this Version: 1.13.1 for STM32CubeIDE


That's quite old now - latest is 1.17.0:

https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-17-0-released/td-p/747656


@Andrew Neil wrote:

Maybe simpler to start without DMA first?

https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-1-17-0-released/td-p/747656


I know without DMA but our real application requires the use of DMA that's 100% certain. Thank you for the last version STM32CubeIDE, I'll going to install it and see if I have the DMA tab.


@DYann.1 wrote:


I know without DMA but our real application requires the use of DMA that's 100% certain. .


But, again, why not start with the simpler case?

Don't add unnecessary complications too early.

Get the simple case working first, then move on to the more advanced case.

As the old proverbs go,

Learn to walk before trying to run

Don't bite of more than you can chew

Don't dive straight in to the deep end


@Andrew Neil wrote:

@DYann.1 wrote:


I know without DMA but our real application requires the use of DMA that's 100% certain. .


But, again, why not start with the simpler case?


I've already done the first case for a long time and it works, I'm a beginner but not to this extent anyway !

DYann.1
Senior II

@Tanveer6279 wrote:

Hello,

The reason you don't see the DMA tab in CubeMX for your STM32L552E-EV board might be due to the following factors

  1. CubeMX or Firmware Version: The version of CubeMX or the STM32 firmware package you’re using might not fully support the DMA configuration for the SDMMC peripheral on your specific microcontroller. Make sure you have the latest STM32CubeIDE (1.13.1 in your case) and the STM32 firmware package installed for the L5 series.


M Tanveer


Hi,

Thank you for this information, yes I think the version of CubeMX is not recent. Even if I install the new version of STMCubeIDE, I won't have the DMA tab either since the video is quite old.

Thank you for your helps.

Regards

SofLit
ST Employee

@DYann.1 wrote:

I have STM32L552E-EV Evaluation Board with STM32L552ZET6QU microcontroller, after me It's possible to have the DMA with SD Card.


There is no DMA configuration for the SDMMC on L5 as it's already a master (a kind of DMA):

SofLit_1-1736521839711.png

Unlike the F7 family, SDMMC1 is mounted as a slave on APB2 where you can configure a DMA (a master) for DMA transfer:

SofLit_2-1736521998973.pngSofLit_3-1736522171402.png

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Thank you for this information, does this mean by default I am already in DMA with my STM32L5xx card ? Right ? For CubeMX I have this version

DYann1_0-1736523067950.png