Tool/software: Code Composer Studio
Hello all,
I am trying to put the address of the first element in an array defined in a part of flash memory in a pointer to be used as an input for a assembly macro
When I build the project I have the following warning message:
a value of type "const int (*)[1728]" cannot be assigned to an entity of type "volatile long *"
here is how my large 1728 y 1 array is defined in a header file:
#ifndef HVLLC_LUT_H_
#define HVLLC_LUT_H_
#pragma DATA_SECTION( ALPHA_TABLE,"LUT_section");
static const int ALPHA_TABLE [] = {{0X48E3},
{0X4A6B},
{0X4BF6},
...
};
LUT_section is defined in linker command file as:
/* Lookuptable */
LUT_section : > FLASHB PAGE = 1
the pointer is defined:
extern volatile long *Calc_Drv_ALPHA_TABLE1;
Calc_Drv_ALPHA_TABLE1 = &ALPHA_TABLE;
Is the warning something serious? How can I fix it?
Any help would be appreciated :)
Peyman