Bill Elliot

Why can't I allocate an array of function pointers into FLASH?

Discussion created by Bill Elliot on Apr 14, 2006
Latest reply on Apr 18, 2006 by Bill Elliot
Hi, using CodWarrior 3.1 for HC(S)08, I am trying to get an array of function pointers allocated into FLASH (.rodata).  Instead they are allocated into RAM (.data) and initialization code loads the array.
Here is what I am doing:
const void (*sapfnIPHandlers [])(void) =
void func1 (void)
I have tried the -Cc compiler option with no change in the output.
This code is simply a way of parsing some commands to get to the right function.  What am I doing wrong (or what is the compiler doing wrong)?