SD Card no file system error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-16 3:48 AM
Hi,
I would like to make an application to access micro sd card via SPI from STM32F407VG-DISC1 board. I have configured the pins as seen in table below.
Main file is also attached.
However, when I run the application I get FR_NO_FILESYSTEM error. My card is formatted as FAT32. It is class4 2GB micro SD card.
When I remove the SD card then I received another error that is FR_NOT_READY. So, this got me thinking that, I have made proper connections, but there is problem with the code.
Could you please point me to the right direction ?
STM32F407VG-DISC1 | HW125 SD CARD MODULE |
PC2 | MISO PIN |
PC3 | MOSI PIN |
PB10 | SCK PIN |
PB12 | GPIO_OUTPUT |
GND | GND |
5V | VCC |
Solved! Go to Solution.
- Labels:
-
FatFS
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-19 6:37 AM
Hi @Andrew Neil
I came to know that SD Card needs some to settle. So, the only I have done is that, I added some delay before mountin the SD card as below. Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-16 4:04 AM
Hi,
Just a question: F407 has SDIO for sd-card access -- why you dont use it ?
+
Keep wires to sd-card short , < 50mm is ok; long wires will make problems....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-16 4:10 AM
Thanks Ascha.3.
This is the task actually.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-16 4:24 AM
@demir wrote:When I remove the SD card then I received another error that is FR_NOT_READY. So, this got me thinking that, I have made proper connections,
Not necessarily.
The card present/not-present might just be detected on a switch ...
Have you tried tracing back to where the error is actually raised?
@demir wrote:HW125 SD CARD MODULE
Do you mean one of these?
Do you have a link to its datasheet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-16 5:29 AM
Thanks Andrew.
Yes, I use one of those. I searched but cant find the datasheet.
I ve debugged the code, please see the attachment. This is where code returns no file system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-16 5:37 AM - edited ‎2024-02-16 5:37 AM
If you can't find a datasheet, how can you be sure you have the correct connections?
:flushed_face:
@demir wrote:This is where code returns no file system.
So step into find_volume() to find what causes it to return that error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-19 1:21 AM
@demir you've marked this as the solution.
For the benefit of future readers having the same problem who may find this, please describe what was the underlying problem, and how you solved it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-19 6:37 AM
Hi @Andrew Neil
I came to know that SD Card needs some to settle. So, the only I have done is that, I added some delay before mountin the SD card as below. Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-19 6:46 AM
Thanks.
It would be better to mark that post as The Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-19 7:18 AM
Cant mark it as the solution, there is no option to select.
