Hi
I’m running FreeRTOS on my LPC2468 board. Currently I’m working on adding some FatFs-based code, allowing me to log data onto SD card (simple read / write instructions). I’ve looked up a few examples, then tried adding some of this code to my project.
Quite obviously, it does not work. So I’ve stripped my new (SD card – related) code to bare minimum, hoping I’d find the wrong line, but no – it still compiles with
undefined reference to ‘disk_initialize’ error code (with full read / write instructions there would be a lots of
undefined reference to ‘f_open’ etc errors).
#include "diskio.h"
#include "ff.h"
int main( void )
{
disk_initialize(0);
}
As you can see, all FatFS libraries are pasted into
FreeRTOSSourceinclude folder. In case the
original libraries were improper for LPC2xxx board, I tried pasting the ones from
this project – no result.
Basically the compiler behaves as it didn’t understand the includes, as if there were none. So maybe it’s a makefile problem? On the other hand, there were no #include – related problems before and I don’t know why some would appear out of the blue.
My makefile: http://codepaste.net/zqxwy2
Include folder contents:
![image](http://i41.tinypic.com/fvw7dg.jpg)
So what on earth could I possibly do wrong here? Any ideas?
Regards,
George