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

Error in compiling mmcsd.c library

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



Joined: 09 Aug 2011
Posts: 3

View user's profile Send private message Send e-mail

Error in compiling mmcsd.c library
PostPosted: Mon May 26, 2014 1:20 am     Reply with quote

When I am going to write to sd card I include mmcsd.c file and fat.c file.
But when I compile my project file it shows the following error:

data item too big ----->
uint8_t g_mmcsd_buffer[MMCSD_MAX_BLOCK_SIZE];
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Mon May 26, 2014 6:35 am     Reply with quote

The CCS manual says this:

Quote:
Data item too big
Define expansion is too large
A fully expanded DEFINE must be less than 255 characters. Check to be sure the DEFINE is
not recursively defined.
Define syntax error
This is usually caused by a missing or misplaced (or) within a define.
Demo period has expired
Please contact CCS to purchase a licensed copy.


With all the info you provided this is the best I can offer.
_________________
Google and Forum Search are some of your best tools!!!!
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Tue May 27, 2014 4:51 am     Reply with quote

Just a wild guess:
You are compiling the code for use with a PIC16 or smaller device?

MMC & SD cards have to be accessed in blocks of 512 bytes. Many PIC16 chips don't have large enough RAM memory to hold all this data. Save yourself a lot of trouble and choose a chip with more than 1500 bytes of RAM, best a PIC18.
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