Tool/software: Code Composer Studio
Hello,
I am using a table-based state machine for a menu-based program used in GLCD. I use the array of a function pointer to call functions. But it is in RAM. And I want to put it into code memory(microcontroller flash ). So please tell how I can do this.
Here is the map file o/p
I use this syntax void " (* fun_ptr[2])(void) " in code, then table is in uninitialized data
/***************************************************************************************************************************************************************************/
Module code initialized data uninitialized data
Grand Total: 70942 18663 15644
/****************************************************************************************************************************************************************************/
And when I void (* const fun_ptr[2])(void) this then table go in initialized data
/***************************************************************************************************************************************************************************
Module code initialized data uninitialized data
Grand Total: 70942 18666 15840
/****************************************************************************************************************************************************************************/