CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

ex_fat.c for 18f4550 compile issue

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
curiousaboutcircuits85



Joined: 08 Apr 2010
Posts: 13

View user's profile Send private message

ex_fat.c for 18f4550 compile issue
PostPosted: Sun Apr 11, 2010 12:35 am     Reply with quote

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.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Apr 11, 2010 1:20 am     Reply with quote

Are you compiling in MPLAB ? Don't add #include files to the Project.
Only the main source file should be listed under Source Files in the
MPLAB project window. Example:
http://www.ccsinfo.com/forum/viewtopic.php?t=27115
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group