Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC32 SD Card library examples doesn't compile in IDE V11!!
29-07-2015, 03:39 PM,
#1
PIC32 SD Card library examples doesn't compile in IDE V11!!
Hi all,

I'm working in a project that involves the use of a SD Card to log battery current and voltage data of an electric car.

So I decided to use the SD Card library to develop the firmware in my Pinguino  board (based in a PIC32MX250F128B). As a first step I tried the included SD Card example projects and for my surprise none of them compiled.

I'm using Pinguino IDE V11 on windows 7 x64.

Someone had this same problem with this library? Could help solve this problem?

As an example, here is a capture of the Stdout output for the Datalogger.pde project (I set the board configuration to PIC32 Pinguino OTG)

Code:
if exist C:\pinguino-11\user\source\main32.o @del C:\pinguino-11\user\source\main32.o
if exist C:\pinguino-11\user\source\main32.elf @del C:\pinguino-11\user\source\main32.elf
if exist C:\pinguino-11\user\source\main32.hex @del C:\pinguino-11\user\source\main32.hex
if exist C:\pinguino-11\user\source\obj\non-free\processor.o @del C:\pinguino-11\user\source\obj\non-free\processor.o
C:\pinguino-11\compilers\p32\bin\p32-gcc.exe -march=m4k -EL -msoft-float -nostdlib -static -O3  -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,-LC:\pinguino-11\user\source\obj\non-free -Wl,--defsym,_min_heap_size=1024 -Wl,-Map=C:\pinguino-11\user\source\output.map -D __PIC32MX__ -D __32MX440F256H__ -D PIC32_PINGUINO_OTG -TC:\pinguino-11\p32\lkr\32MX440F256H.ld -TC:\pinguino-11\p32\lkr\elf32pic32mx.x -LC:\pinguino-11\user\source\obj\non-free\usb -lm -lgcc -lc -fdollars-in-identifiers -IC:\pinguino-11\p32\include\non-free -IC:\pinguino-11\p32\include\pinguino\core -IC:\pinguino-11\p32\include\pinguino\libraries -IC:\pinguino-11\p32\lkr -IC:\pinguino-11\user\examples\09.Interfacing\SD -IC:\pinguino-11\user\source\obj\non-free  -S -o C:\pinguino-11\user\source\main32.S C:\pinguino-11\user\source\main32.c
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/sdmmc.c:22:0,
                from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:32,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/digitalw.c:277:6: warning: conflicting types for 'output'
void output(int pin)
     ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:30:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/spi.c:80:9: note: previous implicit declaration of 'output' was here
        output(SPI[module].sda);
        ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/sdmmc.c:22:0,
                from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:32,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/digitalw.c:372:6: warning: conflicting types for 'digitalwrite'
void digitalwrite(int pin, int state)
     ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:30:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/spi.c:663:17: note: previous implicit declaration of 'digitalwrite' was here
                digitalwrite(SPI[module].sda, (data_out & bitMask) ? 1 : 0);
                ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/sdmmc.c:22:0,
                from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:32,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/digitalw.c:419:6: warning: conflicting types for 'high'
void high(int pin)
     ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:30:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/spi.c:666:17: note: previous implicit declaration of 'high' was here
                high(SPI[module].sck);
                ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/sdmmc.c:22:0,
                from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:32,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/digitalw.c:445:6: warning: conflicting types for 'low'
void low(int pin)
     ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:30:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\core/spi.c:667:17: note: previous implicit declaration of 'low' was here
                low(SPI[module].sck);
                ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c: In function 'loop':
C:\pinguino-11\user\source\user.c:148:38: error: 'rtccDate' has no member named 'wday'
   psprintf(temp, "%3s,", Day[curDate.wday]);  
                                     ^
C:\pinguino-11\user\source\user.c:150:44: error: 'rtccDate' has no member named 'mday'
   psprintf(temp, "%02d-%3s-%04d,", curDate.mday, Month[curDate.mon], curDate.year+2000);  
                                           ^
C:\pinguino-11\user\source\user.c:150:64: error: 'rtccDate' has no member named 'mon'
   psprintf(temp, "%02d-%3s-%04d,", curDate.mday, Month[curDate.mon], curDate.year+2000);  
                                                               ^
C:\pinguino-11\user\source\user.c:153:45: error: 'rtccTime' has no member named 'hour'
   psprintf(temp, "%02d:%02d:%02d,", curTime.hour, curTime.min, curTime.sec);  
                                            ^
C:\pinguino-11\user\source\user.c:153:59: error: 'rtccTime' has no member named 'min'
   psprintf(temp, "%02d:%02d:%02d,", curTime.hour, curTime.min, curTime.sec);  
                                                          ^
C:\pinguino-11\user\source\user.c:153:72: error: 'rtccTime' has no member named 'sec'
   psprintf(temp, "%02d:%02d:%02d,", curTime.hour, curTime.min, curTime.sec);  
                                                                       ^
C:\pinguino-11\user\source\user.c:179:4: error: too few arguments to function 'mount'
   mount(SDCS_PIN);          
   ^
In file included from C:\pinguino-11\user\source\define.h:11:0,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:48:6: note: declared here
char mount(u8 module, u8 cs)
     ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:182:17: warning: passing argument 1 of 'f_open' makes integer from pointer without a cast
   res = f_open(&fil, filename, FA_OPEN_ALWAYS | FA_READ | FA_WRITE);
                ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:182:23: warning: passing argument 2 of 'f_open' from incompatible pointer type
   res = f_open(&fil, filename, FA_OPEN_ALWAYS | FA_READ | FA_WRITE);
                      ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: expected 'struct FIL *' but argument is of type 'u8 *'
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.h:23:0,
                from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:31,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.h:287:25: warning: passing argument 3 of 'f_open' makes pointer from integer without a cast
#define FA_OPEN_ALWAYS  0x10
                        ^
C:\pinguino-11\user\source\user.c:182:33: note: in expansion of macro 'FA_OPEN_ALWAYS'
   res = f_open(&fil, filename, FA_OPEN_ALWAYS | FA_READ | FA_WRITE);
                                ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: expected 'const TCHAR *' but argument is of type 'int'
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:182:10: error: too few arguments to function 'f_open'
   res = f_open(&fil, filename, FA_OPEN_ALWAYS | FA_READ | FA_WRITE);
         ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: declared here
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:185:15: warning: passing argument 1 of 'f_lseek' makes integer from pointer without a cast
      f_lseek(&fil,file_size);  
              ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3316:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_lseek(u8 module, FIL *fp, DWORD ofs)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:185:20: warning: passing argument 2 of 'f_lseek' makes pointer from integer without a cast
      f_lseek(&fil,file_size);  
                   ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3316:9: note: expected 'struct FIL *' but argument is of type 'DWORD'
FRESULT f_lseek(u8 module, FIL *fp, DWORD ofs)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:185:7: error: too few arguments to function 'f_lseek'
      f_lseek(&fil,file_size);  
      ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3316:9: note: declared here
FRESULT f_lseek(u8 module, FIL *fp, DWORD ofs)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:188:20: warning: passing argument 1 of 'f_write' makes integer from pointer without a cast
      rc = f_write(&fil, buffer, bytes_to_write, &bytes_written);  
                   ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2942:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_write(u8 module, FIL *fp, const void *buff, UINT btw, UINT *bw)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:188:26: warning: passing argument 2 of 'f_write' from incompatible pointer type
      rc = f_write(&fil, buffer, bytes_to_write, &bytes_written);  
                         ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2942:9: note: expected 'struct FIL *' but argument is of type 'u8 *'
FRESULT f_write(u8 module, FIL *fp, const void *buff, UINT btw, UINT *bw)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:188:34: warning: passing argument 3 of 'f_write' makes pointer from integer without a cast
      rc = f_write(&fil, buffer, bytes_to_write, &bytes_written);  
                                 ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2942:9: note: expected 'const void *' but argument is of type 'u16'
FRESULT f_write(u8 module, FIL *fp, const void *buff, UINT btw, UINT *bw)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:188:50: warning: passing argument 4 of 'f_write' makes integer from pointer without a cast
      rc = f_write(&fil, buffer, bytes_to_write, &bytes_written);  
                                                 ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2942:9: note: expected 'UINT' but argument is of type 'u16 *'
FRESULT f_write(u8 module, FIL *fp, const void *buff, UINT btw, UINT *bw)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:188:12: error: too few arguments to function 'f_write'
      rc = f_write(&fil, buffer, bytes_to_write, &bytes_written);  
           ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2942:9: note: declared here
FRESULT f_write(u8 module, FIL *fp, const void *buff, UINT btw, UINT *bw)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:189:14: warning: passing argument 1 of 'f_sync' makes integer from pointer without a cast
      f_sync(&fil);            
             ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3102:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_sync(u8 module, FIL *fp)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:189:7: error: too few arguments to function 'f_sync'
      f_sync(&fil);            
      ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3102:9: note: declared here
FRESULT f_sync(u8 module, FIL *fp)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:192:15: warning: passing argument 1 of 'f_close' makes integer from pointer without a cast
      f_close(&fil);            
              ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3151:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_close(u8 module, FIL *fp)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:192:7: error: too few arguments to function 'f_close'
      f_close(&fil);            
      ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3151:9: note: declared here
FRESULT f_close(u8 module, FIL *fp)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:193:7: error: too few arguments to function 'unmount'
      unmount();              
      ^
In file included from C:\pinguino-11\user\source\define.h:11:0,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:162:6: note: declared here
void unmount(u8 module)
     ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:208:7: error: too few arguments to function 'mount'
      mount(SDCS_PIN);        
      ^
In file included from C:\pinguino-11\user\source\define.h:11:0,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:48:6: note: declared here
char mount(u8 module, u8 cs)
     ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:209:20: warning: passing argument 1 of 'f_open' makes integer from pointer without a cast
      res = f_open(&fil, filename, FA_OPEN_EXISTING | FA_READ | FA_WRITE);
                   ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:209:26: warning: passing argument 2 of 'f_open' from incompatible pointer type
      res = f_open(&fil, filename, FA_OPEN_EXISTING | FA_READ | FA_WRITE);
                         ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: expected 'struct FIL *' but argument is of type 'u8 *'
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.h:23:0,
                from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:31,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.h:280:26: warning: passing argument 3 of 'f_open' makes pointer from integer without a cast
#define FA_OPEN_EXISTING 0x00
                         ^
C:\pinguino-11\user\source\user.c:209:36: note: in expansion of macro 'FA_OPEN_EXISTING'
      res = f_open(&fil, filename, FA_OPEN_EXISTING | FA_READ | FA_WRITE);
                                   ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: expected 'const TCHAR *' but argument is of type 'int'
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:209:13: error: too few arguments to function 'f_open'
      res = f_open(&fil, filename, FA_OPEN_EXISTING | FA_READ | FA_WRITE);
            ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2651:9: note: declared here
FRESULT f_open(u8 module, FIL *fp, const TCHAR *path, PF_BYTE mode)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:218:25: warning: passing argument 1 of 'f_read' makes integer from pointer without a cast
            rc = f_read(&fil, read_buffer, BUFFER_SIZE, &bytes_read);
                        ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2821:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_read(u8 module, FIL *fp, void *buff, UINT btr, UINT *br)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:218:31: warning: passing argument 2 of 'f_read' from incompatible pointer type
            rc = f_read(&fil, read_buffer, BUFFER_SIZE, &bytes_read);
                              ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2821:9: note: expected 'struct FIL *' but argument is of type 'u8 *'
FRESULT f_read(u8 module, FIL *fp, void *buff, UINT btr, UINT *br)
        ^
In file included from C:\pinguino-11\user\source\main32.c:38:0:
C:\pinguino-11\user\source\define.h:2:21: warning: passing argument 3 of 'f_read' makes pointer from integer without a cast
#define BUFFER_SIZE 32  
                    ^
C:\pinguino-11\user\source\user.c:218:44: note: in expansion of macro 'BUFFER_SIZE'
            rc = f_read(&fil, read_buffer, BUFFER_SIZE, &bytes_read);
                                           ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2821:9: note: expected 'void *' but argument is of type 'int'
FRESULT f_read(u8 module, FIL *fp, void *buff, UINT btr, UINT *br)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:218:57: warning: passing argument 4 of 'f_read' makes integer from pointer without a cast
            rc = f_read(&fil, read_buffer, BUFFER_SIZE, &bytes_read);
                                                        ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2821:9: note: expected 'UINT' but argument is of type 'u16 *'
FRESULT f_read(u8 module, FIL *fp, void *buff, UINT btr, UINT *br)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:218:18: error: too few arguments to function 'f_read'
            rc = f_read(&fil, read_buffer, BUFFER_SIZE, &bytes_read);
                 ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:2821:9: note: declared here
FRESULT f_read(u8 module, FIL *fp, void *buff, UINT btr, UINT *br)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:230:18: warning: passing argument 1 of 'f_close' makes integer from pointer without a cast
         f_close(&fil);  
                 ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3151:9: note: expected 'u8' but argument is of type 'struct FIL *'
FRESULT f_close(u8 module, FIL *fp)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:230:10: error: too few arguments to function 'f_close'
         f_close(&fil);  
         ^
In file included from C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:33:0,
                from C:\pinguino-11\user\source\define.h:11,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/ff.c:3151:9: note: declared here
FRESULT f_close(u8 module, FIL *fp)
        ^
In file included from C:\pinguino-11\user\source\main32.c:57:0:
C:\pinguino-11\user\source\user.c:231:10: error: too few arguments to function 'unmount'
         unmount();    
         ^
In file included from C:\pinguino-11\user\source\define.h:11:0,
                from C:\pinguino-11\user\source\main32.c:38:
C:\pinguino-11\p32\include\pinguino\libraries/sd/fileio.c:162:6: note: declared here
void unmount(u8 module)
     ^
make: *** [compile] Error 1
Thanks in advance.
Leonardo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)