STM32L4 DMA read write multiple blocks problem
Posted on August 03, 2017 at 12:36
I have a problem with DMA mode reading multiple blocks.
To simplify a problem i took an example from the
STM32Cube_FW_
L4_V1.8.0\Projects\STM32L476G_
EVAL\Applications\FatFs\FatFs_
uSD\ archive.
BSP_SD_ReadBlocks_DMA
is used.
Read blocks not worked good, it started to work after i separated rx and tx and added Init and Deinitto DMA each time that i use that channel.
The problem is witha write now. I can write only blocks that are less then 1k. from 1k to 4096 sometimes it can write and sometimes
f_writereturn 0x
It always fails to write blocks bigger then 4096, bsp_write_blocks always fails with MSD_ERROR .
The problem only in DMA mode, polling mode works great.
Note: this post was migrated and contained many threaded conversations, some content may be missing.
