curiousaboutcircuits85
Joined: 08 Apr 2010 Posts: 13
|
ex_fat.c for 18f4550 compile issue |
Posted: Sun Apr 11, 2010 12:35 am |
|
|
Hello Everyone,
I changed the ex_fat.c for 18f4550 by making the following changes:
Code: |
#define MMCSD_PIN_SCL PIN_B1 //o used to be C3
#define MMCSD_PIN_SDI PIN_B0 //i used to be C4
#define MMCSD_PIN_SDO PIN_C7 //o used to be C5
#define MMCSD_PIN_SELECT PIN_A0 //o used to be C2
|
on the mmcsd.c and ex_fat.c files. Ive been trying to compile, but I am getting 100 errors with mmcsd.c file:
Quote: | Executing: "C:\Program Files\PICC\Ccsc.exe" +FH "18f4550SDCardtest.c" +EXPORT +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 23 "18f4550SDCardtest.c" Line 23(8,9): Can not change device type this far into the code
*** Error 48 "18f4550SDCardtest.c" Line 23(22,34): Expecting a (
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 134(1,113): Expecting a (
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 135(4,13): Expecting a (
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 135(18,30): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 135(20,21): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 135(21,22): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 136(15,25): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 136(17,21): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 136(21,22): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 137(22,39): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 137(24,28): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 137(28,29): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 138(22,39): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 138(24,28): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 138(28,29): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 139(18,31): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 139(20,24): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 139(24,25): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 140(24,43): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 140(26,30): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 140(30,31): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 141(19,33): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 141(21,25): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 141(25,26): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 142(20,35): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 142(22,26): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 142(26,27): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 143(17,29): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 143(19,23): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 143(23,24): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 143(24,25): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 186(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 186(21,22): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 186(22,23): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 186(23,24): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(26,27): Expecting a declaration
*** Error 28 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(48,53): Expecting an identifier
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(52,53): Expecting a declaration
*** Error 36 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(62,63): Expecting a ; or ,
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(27,28): Expecting a declaration
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(33,40): More info: First Declaration of address
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(34,41): Identifier is already used in this scope
*** Error 28 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(55,58): Expecting an identifier
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(60,63): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(64,65): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 189(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 189(27,28): Expecting a declaration
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(33,40): More info: First Declaration of address
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 189(34,41): Identifier is already used in this scope
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(49,53): More info: First Declaration of size
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 189(49,53): Identifier is already used in this scope
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(59,62): More info: First Declaration of ptr
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 189(60,63): Identifier is already used in this scope
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 189(64,65): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 190(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 190(28,29): Expecting a declaration
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(33,40): More info: First Declaration of address
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 190(35,42): Identifier is already used in this scope
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 188(49,53): More info: First Declaration of size
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 190(50,54): Identifier is already used in this scope
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(59,62): More info: First Declaration of ptr
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 190(61,64): Identifier is already used in this scope
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 190(65,66): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 191(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 191(30,31): Expecting a declaration
*** Error 81 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 191(35,36): Expecting a basic type
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 192(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 192(29,30): Expecting a declaration
*** Error 81 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 192(34,35): Expecting a basic type
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 193(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 193(29,30): Expecting a declaration
*** Error 36 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 193(38,39): Expecting a ; or ,
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 194(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 194(26,27): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 194(27,28): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 194(28,29): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 195(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 195(26,27): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 195(27,28): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 195(28,29): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 196(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 196(26,27): Expecting a declaration
*** Error 36 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 196(35,36): Expecting a ; or ,
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 197(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 197(28,29): Expecting a declaration
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 196(31,33): More info: First Declaration of r2
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 197(33,35): Identifier is already used in this scope
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 197(36,37): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 197(37,38): Expecting a declaration
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 197(38,39): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 198(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 198(29,30): Expecting a declaration
*** Error 36 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 198(44,45): Expecting a ; or ,
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 199(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 199(34,35): Expecting a declaration
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(33,40): More info: First Declaration of address
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 199(41,48): Identifier is already used in this scope
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 199(49,50): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 200(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 200(35,36): Expecting a declaration
--- Info 300 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 187(33,40): More info: First Declaration of address
*** Error 31 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 200(42,49): Identifier is already used in this scope
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 200(50,51): Expecting a declaration
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 201(11,20): Expecting a (
*** Error 43 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 201(32,33): Expecting a declaration
*** Error 81 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 201(37,38): Expecting a basic type
*** Error 48 "C:\PROGRA~1\PICC\drivers\mmcsd.c" Line 202(11,20): Expecting a (
W:\SENIORDESIGNTEST\18f4550SDCardtest.o ===> 100 Errors, 0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Sun Apr 11 01:29:44 2010 |
Anybody experience this? Thank you. |
|