Skip to main content
hukhongcongtu26111993
Associate III
Nov 21, 2017 2:40 AM UTC
Solved

How can I use USE_DMA_TEMPLATE in stm32cubemx?

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.
    Jeanne Joly
    Jeanne JolyBest answer
    Associate
    Feb 22, 2018 8:21 AM UTC
    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

    3 replies

    Amel NASRI
    ST Technical Moderator
    Nov 21, 2017 10:40 AM UTC
    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
    Nov 22, 2017 7:30 AM UTC
    Posted on November 22, 2017 at 07:30

    Thanks you! I wait for the reply  

    Jeanne Joly
    Jeanne JolyBest answer
    Associate
    Feb 22, 2018 8:21 AM UTC
    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