Skip to main content
jamal taheri
Associate
December 29, 2016
Question

stm32cubemx + fatfs + sdio + dma ... ignored

  • December 29, 2016
  • 3 replies
  • 1613 views
Posted on December 29, 2016 at 15:25

hi

my mcu is stm32f407,

why my program in HAL_SD_CheckWriteOperation hangup !?

tanks for replay.

    This topic has been closed for replies.

    3 replies

    Technical Moderator
    December 29, 2016
    Posted on December 29, 2016 at 15:39

    Dear

    taheri.jamal

    ‌,

    Your issue description is general.Pleaseprovide more details andprecise the firmware version ofSTM32cubeF4 you are using. Is-It the last version?Do you get an error message?

    You can add your code to clarify your case.

    You can refer to SD example within STM32CubeF4 V1.0, hope this helps you.

    Best Regards

    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
    jamal taheri
    Associate
    December 29, 2016
    Posted on December 29, 2016 at 20:01

    Thanks imen.

    MCU : STM32F407

    STM32CubeMX 4.17.0

    STM32Cube FW_F4 V1.13.1

    I have a detailed example, using the STM32CubeMX to implement FatFs on SDIO that uses DMA like it.

    Because, in STM32CubeMX implementation DMA for SDIO in FatFs unfortunately does not exist !!!

    Help me please.

    Jan Slavot�nek
    Associate III
    June 22, 2017
    Posted on June 22, 2017 at 09:53

    Actually now i am looking for sdio fatfs with DMA too. Do you have any progress with your project? I cant find a proper example or guide how to configure that. 

    Thanks
    Nemui Trinomius
    Associate II
    June 22, 2017
    Posted on June 22, 2017 at 10:17

    Stop using DMA ,use FIFO polling instead.

    Jan Slavot�nek
    Associate III
    June 22, 2017
    Posted on June 22, 2017 at 10:43

    Why not use DMA for sdio fatfs? What if i have demanding application that computes a lot in realtime and also i need a lot of data to be transferred to the sd card? 

    So you say one can not use DMA in sdio fatfs app with stm32? 
    Tesla DeLorean
    Guru
    June 22, 2017
    Posted on June 22, 2017 at 15:06

    Given the forum traffic on the CubeMX/HAL SDIO implementation, I'd assume because it has a better chance of working.

    The read/write speeds are highly dependent on the cards in question and size/alignment of the data transfers. Current SPL implementations I'm typically seeing 5-11 MBps writes, and 9-20 MBps reads, using DMA

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