STM32L476RG always delivers FR_DISK_ERR when using f_mount, to mount a micro-SD card with FATFS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 10:27 AM
The SD card itself seems to work flawlessly with my computer. I tried all the configurations offered in the forum for those who had a similar issue (setting DMA or the interrupt timer) and it doesn't seem to help. Stepping through the function with the debugger seems to change the result (giving out FR_NOT_READY instead of FR_DISK_ERR ), so I don't really know where thing go wrong.
What else can I try to do to fix this?
- 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-04-07 11:44 AM
On a Nucleo board, or something else?
If not Nucleo, what USART and pins are used for debug/diagnostic output?
Show socket and wiring.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 11:52 AM
Yes its a Nucleo board. I used the internal pullups for all the ports expect CLK, and just plugged the SD card to the board with jumper cables.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 12:28 PM
Working SDMMC + FATFS demo for NUCLEO-L476RG, outputs diagnostic to VCP at 115200 8N1
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-07 12:49 PM
How exactly do I use this file with CubeIDE?
