2
« on: October 22, 2012, 03:09:52 PM »
When I uncomment the line to get SD Card support I have some errors.
#define SDCARD_SUPPORT // SD-card interface
#ifdef SDCARD_SUPPORT
#define SD_CARD_RETRY_INTERVAL 5 // attempt SD card initialisation at 5s intervals
#define UT_DIRECTORIES_AVAILABLE 5 // this many directories objects are available for allocation
#define UTMANAGED_FILE_COUNT 10 // allow this many managed files at one time
#define UTFAT_LFN_READ // enable long file name read support
#ifdef UTFAT_LFN_READ
#define MAX_UTFAT_FILE_NAME (100) // the maximum file name length supported
#endif
#define UTFAT_WRITE // enable write functions
#ifdef UTFAT_WRITE
#define UTFAT_FORMATTING // enable formatting SD cards (requires also write)
#define UTFAT_FULL_FORMATTING // enable formatting SD cards including zeroing of data sectors as well as FAT sectors
#endif
#define UTFAT16 // support FAT16 as well as FAT32
#define SUPPORT_FILE_TIME_STAMP // when activated fnGetLocalFileTime() must exist, which return the date and time information
#endif
This is the list of error, I try to follow, but I cant find what is wrong.
compiling LPC17XX.c...
..\..\..\Hardware\LPC17XX\LPC17XX.c(315): warning: #111-D: statement is unreachable
..\..\..\Hardware\LPC17XX\LPC17XX.c(4484): error: #20: identifier "ucSeconds" is undefined
..\..\..\Hardware\LPC17XX\LPC17XX.c(4485): error: #20: identifier "ucMinutes" is undefined
..\..\..\Hardware\LPC17XX\LPC17XX.c(4486): error: #20: identifier "ucHours" is undefined
..\..\..\Hardware\LPC17XX\LPC17XX.c(4487): error: #20: identifier "ucDayOfMonth" is undefined
..\..\..\Hardware\LPC17XX\LPC17XX.c(4488): error: #20: identifier "ucMonthOfYear" is undefined
..\..\..\Hardware\LPC17XX\LPC17XX.c(4489): error: #20: identifier "usYear" is undefined
..\..\..\Hardware\LPC17XX\LPC17XX.c(4490): error: #20: identifier "ucSeconds" is undefined
..\..\..\Hardware\LPC17XX\LPC17XX.c(4491): error: #20: identifier "usYear" is undefined
I think that this must be a silly mistake, but can´t find it.
Thanks