Skip to main content
Visitor II
January 27, 2025
Solved

FR_NO_FILESYSTEM, (13) There is no valid FAT volume

  • January 27, 2025
  • 1 reply
  • 993 views

res = disk_initialize(0);

printf("disk_initialize returned: %d\n", res);

if (res != RES_OK) {

printf("Disk initialization failed!\n");

v = 8;

} else {

fres = f_mount(&fs, "", 1);

printf("mount returned: %d\n", fres);

if (fres == FR_OK) {

printf("Filesystem mounted successfully!\n");

v = 5;

} else {

printf("Filesystem mount failed!\n");

v = 9;

}

}

 

got intiailization correct and i tryed f_mks and format the flash ic .

but still occur filemount issue. got no idea where the issue come from . no bug or error .
i see this on debug window

Thread #1 [main] 1 [core: 0] (Suspended : Signal : SIGINT:Interrupt)
main() at main.c:135 0x80003a4
i am using nucleo f302r8 board and w25q64 winbond flash ic

anyone have any idea?

    This topic has been closed for replies.
    Best answer by AScha.3

    Yes. Read here in forum -> search ... sd

    & also my posts, how to begin and avoid basic errors/problems .

    1 reply

    AScha.3Answer
    Super User
    January 27, 2025

    Yes. Read here in forum -> search ... sd

    & also my posts, how to begin and avoid basic errors/problems .

    Visitor II
    January 27, 2025

    i dont get it .

    Super User
    January 27, 2025

    see: your not the first, to have this problem. 

    So look, what are the steps, to get it working: correct hardware setup, etc.

     

    https://community.st.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&q=sd

    -> 4,000 results !  a lot to read...

     

    Its "normal" - in my sd-card tests it never worked instantly , just by connecting some wires and any sd-adapter.

    So "standard" is not working, at start...