SD/MMC From the ground up

I have been having some trouble getting the uFAT and Device Print working. I'm using Arduino 0015 and Duemilanove with Atmega328, on Windows XP. I have the FutureElec SD breakout board and I wired it up according to the details provided including the voltage dividers.

I am using the library archive dated 4/19/09 and DevicePrintDemo sketch from 2/11/09. I tried to follow the code setup instructions (eg. reply #82), but for some reason it wouldn't compile. I had to copy the 3 header files to the ..\hardware\tools\avr\avr\include folder, and I had to 'Add File' for the 3 cpp files to the DevicePrintDemo sketchbook. I'm new to Arduino so I'm not sure if I set this up right. But it would finally compile with no errors, and sketch size of 5280 bytes.

I have tried two cards, one is a 16MB MMC, formated in a DOS prompt in FAT with 512 block size. The other is a 2GB SanDisk MiniSD (in an adapter). This one wouldn't let me use 512 byte block size ("The specified cluster size is too small for FAT16/12.") or anything up to 16k for that matter, so I used the default 32k. I put a ~160kB data.txt file on each.

The 16MB MMC card gave the following error:

uFat / DevicePrint Demo
2009 arduinonut.blogspot.com

Error Couldn't initialise microfat

...and the 2GB SD gave me the following:

uFat / DevicePrint Demo
2009 arduinonut.blogspot.com

Error Couldn't initialise card

I am going to try to get another card to test, but does anyone have any other ideas what I might be doing wrong?

Many thanks,
Angelo