2020-05-07 04:45 AM
Hi,
I'm using STM32L451RCT with SDMMC and FATFS.
I'm Generating the code from CUBE.
Reading files (f_read) from SD is working but I'm failed to write to file (f_write)
Does anyone know how can I solve the problem
2020-05-07 05:34 AM
Look at the return value. Figure out which line is failing, go from there.
2020-05-07 05:51 AM
Hi,
The return value from f_write is: FR_DISK_ERR
In SD_write function it get out with timeout after BSP_SD_WriteBlocks_DMA call
2020-05-07 06:17 AM
Have to debug the DISKIO layer
Would look at the IRQ Handler, and make sure the one you need is not WEAK.
Check the .MAP and .LST files, check what code got built /bound