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 > DSTT with M3 mini SD pro - fat programming problem

#150733 - Baldwin - Mon Feb 11, 2008 6:23 pm

Hello all,
First of all I must congratulate you and the entire nds scene: Great job studying NDS secrets for homebrew development!
I'm having problems using FAT on the M3 miniSD card with my own software, using older libfat or using the DLDI patching. I need to boot and load my app using the DSTT card and then use the M3 mini SD as a disk.
The only way to make the M3 accesible is booting from the M3 (using PASSME on the DSTT). It seems that the M3 is not configured, or switched off, if the system boots from the DSTT.
When using DLDI, I disable the autopatching feature, so the DSTT can't modify the DLDI driver.
Any ideas on how to configure/activate the SD on the M3 without booting from this device?
Thank you in advance.

#150738 - simonjhall - Mon Feb 11, 2008 8:06 pm

On some cards like this you need to go into (in this case) the M3 menu, power off the DS then boot off the other card. This seems to initialise the card...some how. I've had this many times with the Supercard.

However, sometimes there can be an alternate dldi driver which initialises the card properly negating the need for this step. Is there an alternative M3 driver?
_________________
Big thanks to everyone who donated for Quake2

#150775 - Baldwin - Tue Feb 12, 2008 6:12 pm

Thanks simonjhall for your ultrafast response! There's an alternate dldi driver but it seems to give same results.

Surfing ds sites I found the DSfile2 utility (thanks CalcProgrammer1 for the idea !) that seems to work ok for my 2 devices. This utility uses PAlib and libfat :). I tested the libfat library by chishm, using <fat.h>...fatInitDefault ()..dirnext()..and so on functions, and seems to work perfectly. I can access the slot1 device and the slot2 device simultaneously !

I'll continue testing this libfat. Thank you again.