This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In the official routine, this section is placed in CLARAM1. The F28035_CLA_C.cmd file contains the following sections:
GROUP : LOAD = FLASHB,
RUN = CLARAM1,
LOAD_START(_Cla1mathTablesLoadStart),
LOAD_END(_Cla1mathTablesLoadEnd),
RUN_START(_Cla1mathTablesRunStart),
LOAD_SIZE(_Cla1mathTablesLoadSize),
PAGE = 1
{
CLA1mathTables
.const_cla
}
Both FLASHB and CLARAM1 are in Page 1. CLARAM1 itself is only 1 K in size, By contrast, RAML3 in the program area is 4K in size.I tried to put CLA MathTables in RAML3, the program memory of CLA, as follows:
GROUP : LOAD = FLASHC,
RUN = RAML3,
LOAD_START(_Cla1mathTablesLoadStart),
LOAD_END(_Cla1mathTablesLoadEnd),
RUN_START(_Cla1mathTablesRunStart),
LOAD_SIZE(_Cla1mathTablesLoadSize),
PAGE = 0
{
CLA1mathTables
.const_cla
}
Code can be compiled and burned normally. But neither CLAsin () nor CLAcos () can get the correct result.
Can CLA instructions not read constants from program space?
Can CLA1mathTables be placed in CLA program RAML3 when using CLAmath?
F.F said:Can CLA instructions not read constants from program space?
Can CLA1mathTables be placed in CLA program RAML3 when using CLAmath?
The math tables are data and must be in RAM accessible by the CLA as data.
Regards
Lori