So I asked Cliff for help in a pm, and he told me I would do better on the main forum so here goes.
I have a simple application (relatively) that is supposed to access an sd card, and play an audio file (.raw).
It should be a very slimmed down version of the fatfs library written by elm-chan.
I am using a mega1284p in smd format so I have 44 pins.
I have attached my schematic.
Firstly I think I need to link to libm.a - after reading around the forum, I notice that "error 126" might be related to that.
Just to check I am using Eclipse with AVR plugin, and there is a box to add libraries (-l) and a box to add libraries Path (-L), based on the small and capital 'L' can anyone tell me which to add the libm.a to, and where it is located (in winAVR).
Lastly, please can someone have look at the implementation of fatfs attached, I cant get it to successfully initialize the sd card, let alone play the audio file, and would greatly appreciate the help getting this working. Pretty sure I cant be far, as Ive followed numerous tutorials to get this working.