SDMMC on STM32 L476 L4
- June 26, 2018
- 2 replies
- 2079 views
Hello,
I struggle to get SDMMC running.
I have a Discovery F4, I use the SDIO Module, open CubeMX, enable SDIO, gpio_input card detect, 2 dma (rx,tx) + interrupt
my code is simple
...
fres = f_mount(&_FileSys, SDPath, 1);
if (fres == FR_OK) { fres = f_open(&_File, 'TEST2.TXT', FA_READ); if (fres == FR_OK) {..etc.
I can write to the card... works fine
But I also have a nucleo L476, when I do the same, enable SDMMC,dma...
it doesn't even mount the card
FR_DISK_ERR
I tested different clock sources, dividers, with dma , without dma
I wired the thing 3 times.
Did I miss something?
Is the there a big difference between the L4 and F4 / SDIO and SDMMC?
CubeMX 4.0 (+ L4 1.0)
TrueSTUDIO 9.0.1
Attached is the not working code for the L4
update:
the old CubeMX 4.21 works with the nucleo L476
The example without Cube from the current reposity package works also.
But the CubeMX 4.26 still doesn't 1 or 2 dma channels... whatever I try, allways
FR_DISK_ERR
. #sdio-dma #sdmmc #sdio #l476 #dma-sdmmc Note: this post was migrated and contained many threaded conversations, some content may be missing.