2018-04-26 05:52 AM
Hi guys, Im new to stm32 and i have a trouble using sd card with
https://www.waveshare.com/wiki/Micro_SD_Storage_Board
. I use CubeMX to generate code, and Workbench to edit it. I tried to use my sd card with SPI or SDIO without any success. I have nucleo f446re board, and few cards tested. Using SDIO and fatfs i didnt get result FR_OK with my initial function. Can someone share a working code? My whole code is in attachments. Thanks in advance.Edit:
After running another code with 2 different micro sd cards i got FR_DISK_ERR.
2018-09-05 05:47 AM
Did your code use dma ? I think the current cubemx only works with dma
2018-09-05 06:27 AM
DMA is should always be used for SDIO/SDMMC, the polled modes have significant vulnerability to interrupt and bus loading.