gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > FatInitDefault random returns

#137923 - Risine - Fri Aug 17, 2007 3:38 pm

I've got troubles using LibFat and I don't know why, if it's a problem of my card or something else.
Randomly, fatInitDefault() returns false, or true, and just copying the .NDS to the DS changes that.
Example :
1/copy NDS to DS.
2/fatInitDefault return FALSE
3/copy NDS to DS.
4/fatInitDefault return FALSE
5/copy NDS to DS.
6/fatInitDefault return TRUE ( at last :) )

This is really annoying, sometimes I need to do that a lot of times before it works.
Does someone have an idea ( I have G6lite kit and use g6fl.dldi )?

#137932 - PypeBros - Fri Aug 17, 2007 5:09 pm

that somehow suggests bad sectors on your media or corrupted filesystem to me. Does the G6 product come with a diagnostic tool of any kind?

If not, i'd say your best hope to understand the problem would be to opt for a more "verbose" release of the libfat that could indicate why the init fails (IO failure, unknown filesystem, or whatever)
_________________
SEDS: Sprite Edition on DS :: modplayer

#137946 - GPFerror - Fri Aug 17, 2007 10:13 pm

yeah backup your stuff, format and recopy everything back on , or run a error check on it and have automatically fix file system errors.

Troy(GPF)

#138022 - Risine - Sat Aug 18, 2007 7:09 pm

Already tried to format the cart multiple times, and to use the diagnostic tool, but the problem's still here.