Skip to main content
sdellinger
Associate
June 19, 2014
Question

SDIO DMA initialization order

  • June 19, 2014
  • 3 replies
  • 1326 views
Posted on June 19, 2014 at 21:29

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    3 replies

    andreasduering9
    Associate
    May 17, 2017
    Posted on May 17, 2017 at 09:42

    It would be really great if someone answered to this.

    According to the Reference Manual, you should configure DMA before sending the command. So which is correct? I have a similar problem with an STM32F103xxx, where I don't know which order is correct.

    ST Technical Moderator
    May 17, 2017
    Posted on May 17, 2017 at 18:50

    Hi

    Duering.Andreas

    ,

    Which firmware version are you using ?

    I will check this behavior andkeep you informed about the taken actions/explanation if needed.

    Thanks

    Imen

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    andreasduering9
    Associate
    May 18, 2017
    Posted on May 18, 2017 at 09:12

    Hello

    DAHMEN.IMEN

    ‌,

    I assume by firmware you mean the library version? I'm using theStandard Peripheral Library (STSW-STM32054), version 3.5.0 (I'm not using an EVAL board, though that shouldn't affect the question).

    The SD example code (STM32F10x_StdPeriph_Lib_V3.5.0\Utilities\STM32_EVAL\Common\stm32_eval_sdio_sd.c) sends the read/write block commands before setting up the DMA, which works 'somehow', but doesn't match the procedure mentioned in section 3.2 'SDIO AHB interface' of the STM32F1 reference manual (RM0008).

    Thanks, Andreas