Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
I have an F28069 device and am trying to get the math LUT tables into the CLA, but without much success.
I have specified cla1_math_library_fpu32.lib in project properties and pointed the linker to all locations it needs to know. I also have the relevant sections in the cmd file (see below) and code to copy the tables into the CLARAM1 during startup. The project compiles without error.
But somehow I need to put the math tables into the FLASH in the first place, as at present the FLASHH area allocated to store them is empty. I do not know where to find the math tables in the C2000 compiler installation or how to link/reference/install them into my project. So, where are they and how to get at them?
Also, is a similar process needed to use LUTs with the FPU?
Many thanks in advance.
The relevant part of the cmd file is as follows:
Cla1Prog : > RAML3,
LOAD_START(_Cla1funcsLoadStart),
LOAD_END(_Cla1funcsLoadEnd),
LOAD_SIZE(_Cla1funcsLoadSize),
RUN_START(_Cla1funcsRunStart),
PAGE = 0
CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1
Cla1DataRam0 : > CLARAM0, PAGE = 1
Cla1DataRam1 : > CLARAM1, PAGE = 1
Cla1DataRam2 : > CLARAM2, PAGE = 1
ClaDataRamL : > RAML5, PAGE=1
Cla1mathTables : LOAD = FLASHH,
RUN = CLARAM1,
LOAD_START(_Cla1mathTablesLoadStart),
LOAD_SIZE(_Cla1mathTablesLoadSize),
RUN_START(_Cla1mathTablesRunStart),
PAGE = 1
{ *.obj(CLAscratch)
. += CLA_SCRATCHPAD_SIZE;
*.obj(CLAscratch_end) } > CLARAM0,
PAGE = 1