Fail to write to SD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-07 4: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
- Labels:
-
FatFS
-
SDIO-SDMMC
-
STM32L4 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-07 5:34 AM
Look at the return value. Figure out which line is failing, go from there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-07 5: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-07 6: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
Up vote any posts that you find helpful, it shows what's working..
