Skip to main content
Visitor II
January 21, 2025
Question

stm32f407 SDIO and USART together

  • January 21, 2025
  • 2 replies
  • 1342 views

when I use the usart6's DMA, my SDIO can't write to the SD card properly

    This topic has been closed for replies.

    2 replies

    Super User
    January 21, 2025

    Welcome to the forum.

    For people to be able to help, you need to give more details - see How to write your question to maximize your chances to find a solution

    Remember that we know absolutely nothing about you or your project other than what you provide in your post.

     

    PS:

    Does it work if you use USART6 without DMA ?

    xtAuthor
    Visitor II
    January 22, 2025

    if I don't use USART6'DMA ,I can write to SD card normally. But,if I use the USART's DMA ,When I write to SD,it will loss many data

    Super User
    January 22, 2025

    @xt wrote:

    if I don't use USART6'DMA ,I can write to SD card normally. 


    Just to be clear: It does work when you use USART6 - just so long as you don't use DMA with it?

    Are you using DMA with the SDIO ?

    Graduate II
    January 21, 2025

    What does this mean? It trashes the file system on the card making it unreadable or just corrupts the file contents of what you are logging?

    Do they share resources or channels? I don't recollect there being a problem on this platform.

    Debug the issue.

    xtAuthor
    Visitor II
    January 22, 2025

    just loss data in sd card