Hi,
I have a C6A8168 EVM and I build my project for C6000 or ARM, it doesn't matter for which one, using CCSv5.2. The SDCARD is not in its slot, meaning, there is no OS(Linux Kernel) running.
Now In the debug mode, when I build the following code, I get this error :
Why is this happening, it is less than 20MB of memory that I'm allocating, the EVM claims to have 1GB of DDR3 RAM?
---------------------------------------------------Error----------------------------------------------------------
>> INTERNAL ERROR: Space required for local variables exceeds maximum in mainThis may be a serious problem. Please contact customer support with adescription of this problem and a sample of the source files that caused thisINTERNAL ERROR message to appear.Cannot continue compilation - ABORTING!
---------------------------------------------------Code----------------------------------------------------------
#include <stdio.h>/* * hello.c */void main(void) { char temp[20070400]; int i; printf("Hello World!\n"); for(i=0;i<20070400;i++) temp[i] = i;}
Vikram,
There are a couple of threads where this error has come up before. Please see:
http://e2e.ti.com/support/development_tools/compiler/f/343/t/169848.aspxhttp://e2e.ti.com/support/development_tools/compiler/f/343/t/86094.aspxUsing your code, I didn't get the error with C6000 compiler but I did with ARM so it looks like that device also has a limit on the space for local variables.
If a post answers your question please mark it with the "Verify Answer" button
Search the wikis for common questions: CGT, BIOS, CCSv3, CCSv4Track a known bug with SDOWP. Enter the bug id in the "Find Record ID" box
Hi Vikram,
Please confirm if you have allocated enough stack. Normally it is not recomended to allocate such large memory in stack. Do confirm if its only a test scenario.
Regards,
Amit