ATxmega128A1 SD programming?

Hello,

Does anyone have sample code for writing to an SD card through the ATxmega128A1 microcontroller? The sample code provided on the sparkfun website is incomplete and I’ve been having lots of trouble trying to get it to work. At this point, I’m just trying to initalize the SD card however it does not respond. I had this working no problem on an ATMega16. Any help would be appreciated! Thanks,

David

Without having actually looked at the code, it shouldn’t be much of an exercise to modify the M16 code to make it work on the XM128A1. The differences should just be at the hardware interface level (IO access/timer functions), while the base code should be functionally the same.

have you used avrfreaks.net? Forum members? Also lots of code in the projects section there.