There doesn't appear to be any code attached.

Where did you get the original code for interfacing SD cards if you don't mind my asking?