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.

CCS/TMS320F28377S: Array of function pointer in code memory of processor

Part Number: TMS320F28377S


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  

/****************************************************************************************************************************************************************************/