Other Parts Discussed in Thread: EK-TM4C1294XL, TM4C1294NCPDT
I'm using CCS Version: 6.0.1.00040 building an application for execution on TM4C129NCPDT silicon. The project's attributes have the Heap is defined as 64KB and Stack is set to 16KB.
Attempts to create an instance of the class using new (e.g., MyClass* pMyClass = new MyClass;) returns null because the size being passed by the compiler to "void *operator new(size_t size) THROW(STD_NAMESPACE::bad_alloc)" is way too big (the value is WAY larger than the entire executable!).
If I try to create the instance on the stack as:
MyClass MyClassInstance;
The following error output is dumped to the console:
'Invoking: ARM Compiler'
"c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -Ooff --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/Users/rhodes/workspace_v6_0/ParcelSysCtrl" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/examples/boards/ek-tm4c1294xl" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/third_party/lwip-1.4.1/src/include" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/third_party/lwip-1.4.1/src/include/ipv4" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/third_party/lwip-1.4.1/ports/tiva-tm4c129/include" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/third_party/lwip-1.4.1/apps" --include_path="C:/ti/TivaWare_C_Series-2.1.1.71/third_party" -g --gcc --define=ccs="ccs" --define=PART_TM4C1294NCPDT --define=TARGET_IS_TM4C129_RA0 --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on --ual --preproc_with_compile --preproc_dependency="main.pp" "../main.cpp"
>> INTERNAL ERROR: Space required for local variables exceeds maximum in main
This may be a serious problem. Please contact customer support with a
description of this problem and a sample of the source files that caused this
INTERNAL ERROR message to appear.
Cannot continue compilation - ABORTING!
>> Compilation failure
gmake: *** [main.obj] Error 1
I cannot understand why the size of the class is so far out from reality - can anyone point me in the right direction for enabling the correct compiler option(s) to make this work?
Thanks!
Mike