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: 1934 Location: Norman, OK
Posted: Mon May 26, 2014 6:35 am
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
Posted: Tue May 27, 2014 4:51 am
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.
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