Skip to main content
hukhongcongtu26111993
Associate III
November 21, 2017
Solved

How can I use USE_DMA_TEMPLATE in stm32cubemx?

  • November 21, 2017
  • 2 replies
  • 1103 views
Posted on November 21, 2017 at 03:40

I use stm32cubemx version 4.23. When I use SDIO 4bit and FATFS middleware, I see USE DMA Template option. If I choose 'disable', my code will run correctly. But If I I choose 'enable', I can't read and write data from uSDcard. I have some question :

1. What does this option mean?

2. What can I config (in stm32cube) to use this option?

    This topic has been closed for replies.
    Best answer by Jeanne Joly
    Posted on February 22, 2018 at 09:21

    Hi

    quoc.anh

    ,

    On CubeMX 4.24, we change the parameter Description as below (we tend to be clearer...) :

    0690X00000609mNQAQ.png

    If you select ''enabled'', you should configure the DMA or else it won't work.

    A thread (

    https://community.st.com/0D50X00009XkWt5SAF

    ) could guide you in configuring DMA setttings in SDIO.

    I hope it will help you.

    BR. Jeanne

    2 replies

    Amel NASRI
    Technical Moderator
    November 21, 2017
    Posted on November 21, 2017 at 11:40

    Hi

    quoc.anh

    ‌,

    I raise your questions to our CubeMX experts, so that you can get the expectedanswer.

    -Amel

    To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
    hukhongcongtu26111993
    Associate III
    November 22, 2017
    Posted on November 22, 2017 at 07:30

    Thanks you! I wait for the reply  

    Jeanne Joly
    Jeanne JolyBest answer
    Associate
    February 22, 2018
    Posted on February 22, 2018 at 09:21

    Hi

    quoc.anh

    ,

    On CubeMX 4.24, we change the parameter Description as below (we tend to be clearer...) :

    0690X00000609mNQAQ.png

    If you select ''enabled'', you should configure the DMA or else it won't work.

    A thread (

    https://community.st.com/0D50X00009XkWt5SAF

    ) could guide you in configuring DMA setttings in SDIO.

    I hope it will help you.

    BR. Jeanne