2021-06-16 01:38 AM
I wonder why the SDMMC peripheral is not working with two DMA channels one for RX and one for TX ....
As stated as a workaround in the community, I configured one DMA channel for RX and TX for the SDMMC peripheral. However it doesnt work properly.
As a test code for SDMMC peripheral, I write and read a 512 byte string to the SD card in a while loop. At the beginning it writes and read successfully (RES_OK), but after some time I receive RES_ERROR return from SD_read and SD_write functions. SD clock is 16 MHz. I tried slower clock freqs, but nothing changes...