Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC32 PINGUIONO's and SD
02-05-2012, 02:34 PM,
#6
RE: PIC32 PINGUIONO's and SD
Hi mf01,

I can finally get back to adding SD to my code and I can not seem to get the x.3 files to compile in x.2.

I have done what you suggested but there is a problem when I compile datalogger.pde.

Here is the stdout file after trying to compile:
Code:
if exist C:\Pinguino32X.2\source\main32.o @del C:\Pinguino32X.2\source\main32.o
if exist C:\Pinguino32X.2\source\main32.elf @del C:\Pinguino32X.2\source\main32.elf
if exist C:\Pinguino32X.2\source\main32.hex @del C:\Pinguino32X.2\source\main32.hex
if exist C:\Pinguino32X.2\p32\obj\non-free\processor.o @del C:\Pinguino32X.2\p32\obj\non-free\processor.o
        1 file(s) copied.
C:\Pinguino32X.2\win32\p32\bin\mips-gcc.exe -EL -O3 -ffunction-sections -fdata-sections -Wl,--gc-sections -march=24kc -msoft-float -Wl,-LC:\Pinguino32X.2\p32\obj\non-free -Wl,--defsym,_min_heap_size=16384 -Wl,-Map=C:\Pinguino32X.2\source\output.map -D __PIC32MX__ -D __32MX440F256H__ -D PIC32_PINGUINO_OTG -TC:\Pinguino32X.2\p32\lkr\PIC32_PINGUINO_OTG\procdefs.ld -TC:\Pinguino32X.2\p32\lkr\PIC32_PINGUINO_OTG\elf32pic32mx.x -LC:\Pinguino32X.2\p32\obj\non-free\usb -lm -lgcc -lc -fdollars-in-identifiers -IC:\Pinguino32X.2\p32\include\non-free -IC:\Pinguino32X.2\p32\include\pinguino\core -IC:\Pinguino32X.2\p32\include\pinguino\libraries -IC:\Pinguino32X.2\p32\lkr\PIC32_PINGUINO_OTG -IC:\Pinguino32X.2\examples\10.Libraries\SD -IC:\Pinguino32X.2\p32\obj\non-free -o C:\Pinguino32X.2\source\main32.elf C:\Pinguino32X.2\source\main32.c \
        C:\Pinguino32X.2\p32\obj\non-free\crt0.S \
        C:\Pinguino32X.2\p32\obj\non-free\processor.o \
        C:\Pinguino32X.2\p32\obj\non-free\usb\libcdc.a \
        C:\Pinguino32X.2\p32\obj\non-free\usb\libadb.a \
        C:\Pinguino32X.2\p32\lkr\PIC32_PINGUINO_OTG\ISRwrapper.S \
        C:\Pinguino32X.2\p32\include\non-free\p32xxxx.h \
        -lm -lgcc -lc
In file included from C:\Pinguino32X.2\source\/define.h:12:0,
                 from C:\Pinguino32X.2\source\main32.c:29:
C:\Pinguino32X.2\p32\include\pinguino\core/__cdc.c: In function 'CDCwrite':
C:\Pinguino32X.2\p32\include\pinguino\core/__cdc.c:211:2: warning: passing argument 1 of 'CDCputs' makes pointer from integer without a cast
C:\Pinguino32X.2\p32\include\pinguino\core/__cdc.c:164:6: note: expected 'char *' but argument is of type 'char'
C:\Pinguino32X.2\p32\include\pinguino\core/__cdc.c: In function 'CDCprint':
C:\Pinguino32X.2\p32\include\pinguino\core/__cdc.c:250:20: warning: cast from pointer to integer of different size
C:\Pinguino32X.2\p32\include\pinguino\core/__cdc.c: In function 'CDCgetstring':
C:\Pinguino32X.2\p32\include\pinguino\core/__cdc.c:294:2: warning: return makes integer from pointer without a cast
In file included from C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/fileio.c:25:0,
                 from C:\Pinguino32X.2\source\/define.h:13,
                 from C:\Pinguino32X.2\source\main32.c:29:
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/sdmmc.c: In function 'initSD':
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/sdmmc.c:29:15: error: 'SDCS' undeclared (first use in this function)
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/sdmmc.c:29:15: note: each undeclared identifier is reported only once for each function it appears in
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/sdmmc.c: In function 'disableSD':
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/sdmmc.c:42:15: error: 'SDCS' undeclared (first use in this function)
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/sdmmc.c: In function 'enableSD':
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/sdmmc.c:48:15: error: 'SDCS' undeclared (first use in this function)
In file included from C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/diskio.c:16:0,
                 from C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/fileio.c:27,
                 from C:\Pinguino32X.2\source\/define.h:13,
                 from C:\Pinguino32X.2\source\main32.c:29:
C:\Pinguino32X.2\p32\include\pinguino\core/rtcc.c: At top level:
C:\Pinguino32X.2\p32\include\pinguino\core/rtcc.c:482:6: warning: conflicting types for 'RTCC_AlarmDisable'
C:\Pinguino32X.2\p32\include\pinguino\core/rtcc.c:269:2: note: previous implicit declaration of 'RTCC_AlarmDisable' was here
C:\Pinguino32X.2\p32\include\pinguino\core/rtcc.c:833:6: warning: conflicting types for 'RTCC_OutputDisable'
C:\Pinguino32X.2\p32\include\pinguino\core/rtcc.c:270:2: note: previous implicit declaration of 'RTCC_OutputDisable' was here
In file included from C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/fileio.c:27:0,
                 from C:\Pinguino32X.2\source\/define.h:13,
                 from C:\Pinguino32X.2\source\main32.c:29:
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/diskio.c: In function 'disk_initialize':
C:\Pinguino32X.2\p32\include\pinguino\libraries/sd/diskio.c:249:2: error: 'SDCS' undeclared (first use in this function)
In file included from C:\Pinguino32X.2\source\main32.c:32:0:
C:\Pinguino32X.2\p32\include\pinguino\core/newlib.c: At top level:
C:\Pinguino32X.2\p32\include\pinguino\core/newlib.c:91:28: warning: 'struct stat' declared inside parameter list
C:\Pinguino32X.2\p32\include\pinguino\core/newlib.c:91:28: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from C:\Pinguino32X.2\source\main32.c:36:0:
C:\Pinguino32X.2\source\/user.c: In function 'loop':
C:\Pinguino32X.2\source\/user.c:147:2: warning: incompatible implicit declaration of built-in function 'sprintf'
make: *** [link] Error 1

Declaration of SDCS is in fileio.h which must not be included I guess.

Any ideas why it looks like I would have to modify SD directory files to make it work?

Thanks,
Dale
PIC32-Pinguino-OTG Rev C and PIC32-PINGUINO-MICRO rev.B
Win XP SP3
r381 x.3 Big Grin
AND spi.c {} error fixed
AND sdmmc.c pin error fixed
AND diskio.c fixed, MICRO can't use the RTCC
AND analog.c fixed for MICRO
Reply


Messages In This Thread
PIC32 PINGUIONO's and SD - by KiloOne - 19-03-2012, 02:32 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 21-03-2012, 10:47 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 22-03-2012, 08:17 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 22-03-2012, 08:27 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 23-03-2012, 10:36 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 02-05-2012, 02:34 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 02-05-2012, 04:08 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 02-05-2012, 07:53 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 02-05-2012, 09:33 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 03-05-2012, 12:17 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 03-05-2012, 04:35 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 04-05-2012, 03:20 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 04-05-2012, 09:53 AM
RE: PIC32 PINGUIONO's and SD - by pingotg - 04-05-2012, 03:35 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 04-05-2012, 09:44 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 04-05-2012, 11:25 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 12:23 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 12:46 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 01:14 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 01:27 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 10:58 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 01:19 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 01:51 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 02:36 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 04:51 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 05:58 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 07:22 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 08:04 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 09:18 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 09:22 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 10:37 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 11:01 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 11:05 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 05-05-2012, 11:50 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 05-05-2012, 11:57 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 10:42 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 10:47 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 11:30 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 02:01 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 03:30 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 03:36 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 03:43 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 03:53 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 05:41 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 07:04 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 07:18 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 07:41 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 07:57 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 09:42 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 08:21 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 08:39 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 08:47 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 09:12 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 09:20 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 09:23 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 09:27 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 09:30 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 09:39 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 06-05-2012, 09:47 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 10:19 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 06-05-2012, 11:04 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 06-05-2012, 11:53 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 12:09 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 12:25 AM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 12:33 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 12:34 AM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 09:09 AM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 09:43 AM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 01:24 PM
RE: PIC32 PINGUIONO's and SD - by pingotg - 07-05-2012, 02:01 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 02:38 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 03:28 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 04:05 PM
RE: PIC32 PINGUIONO's and SD - by KiloOne - 07-05-2012, 04:39 PM
RE: PIC32 PINGUIONO's and SD - by mf01 - 07-05-2012, 04:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)