Other Parts Discussed in Thread: AM2431, UNIFLASH
Tool/software:
Hello
I am using CCS Version: 11.1.0.00011 with TI Clang v1.3.0.LTS
If i add some C++ code, the bin file become over 200M.Normal is 1000k.
The code i added is like below:
static Atest A __attribute__((section("DATA_AREA"))); (If i change this code into "static Atest A ",generated bin file size is normal(1000K))
void Func()
{
A.setbb();
}
class Atest
{
public:
int aa[1];
public:
void setbb()
{
aa[0] = 1;
}
};
Func test()
{
A.setbb();
}
Linker.Cmd file is like below:
DDR_TEST1: {}ALIGN (8)> DDR
MEMORY
{
R5F_VECS : ORIGIN = 0x00000000 , LENGTH = 0x00000040
R5F_TCMA : ORIGIN = 0x00000040 , LENGTH = 0x00007FC0
R5F_TCMB0 : ORIGIN = 0x41010000 , LENGTH = 0x00008000
MSRAM_VECS : ORIGIN = 0x70000000 , LENGTH = 0x100
MSRAM_0 : ORIGIN = 0x70000100 , LENGTH = 0x1A0000 - 0x100
MSRAM_VERSION :ORIGIN = 0x701A0000 , LENGTH = 0x20
DDR : ORIGIN = 0x80000000 , LENGTH = 0xF500000
}
My question is
I have to put var A into DDR ,How can i do that and get a normal size bin file?