Other Parts Discussed in Thread: MSP430G2210, MSP-FET, CCSTUDIO
Colleagues,
I have these global variable declarations (names of variables changed to protect the guilty) :
Foo g_objFoo; Bar g_objBar(&g_objFoo);
The program does not build, generates this error:
> #10099-D program will not fit into available memory. placement with alignment fails for section ".text" size 0x8d0 .
and in the .map file
.text 0 00000000 000008d0 FAILED TO ALLOCATE
If I declare g_objBar as a local variable in main(), then the code builds. That suggests that I haven't actually run out of memory.
Heap size is set to 16 bytes, which should be enough. The objects have only few fields.
What could I be missing?
Any suggestion, insight or reference is really appreciated!
Cheers,
- Nick
My development environment: CCStudio 6.1.1.00022, MSP-FET via Spy-Bi-Wire, MSP430G2210.