Hello Daniel,
Please find the following how I access my variables:
#define LIMIT_MAX 5000
#define SIZE_LIN 3
volatile const float c_POLPTIEC00_0[4] = {-5.78917222e-06, +2.50809493e-03, +2.22793687e+00, -2.42091388e+02};
volatile const float c_POLPTIEC00_1[4] = {+1.01890899e-06, +6.30461601e-04, +2.40305016e+00, -2.47634281e+02};
volatile const float c_POLPTIEC00_2[4] = {+2.14757889e-06, -2.76439182e-04, +2.64911809e+00, -2.70148753e+02};
const float c_LIN9[3] =
{ 100.000,
260.785,
LIMIT_MAX};
const float * const cp_LIN [SIZE_LIN] =
{
&c_LIN9[0]
};
const float * const cp_POL [SIZE_LIN] =
{
&c_POLPTIEC00_0[0],
//&c_POLPTIEC00_1[0], //if declared, compiler generates the code for this
//&c_POLPTIEC00_2[0] //if declared, compiler generates the code for this
};
main {
float *p_pol_tbl;
float *p_lin_tbl;
asm_main(); /* call the assembly function */
Init_CPU();
init_sys();
p_lin_tbl = cp_LIN[0];
p_pol_tbl = cp_POL[0];
}
The map file shows, these two variables in the Unused-Objects section
STT25x.c.o:
c_POLPTIEC00_1 c_POLPTIEC00_2
Please clarify. Thanks in advance.