Hello, I have data structures of the following type
const void * testpanel_pointers[][4] = { { "Status", NULL, NULL, NULL }, { "Configuration", NULL, NULL, NULL }, { "Self Test", NULL, NULL, NULL }, { "Day", NULL, NULL, NULL}, { "Begin Countdown", NULL, NULL, NULL }, { "Value", (void*)&edit_test, (void*)IntEdit::getString, "C" }, { "Refresh Menu", NULL, NULL, NULL }, { "Submenu->", NULL, NULL, NULL }, };
that I want to be stored in ROM as opposed to RAM, which is of course much more limited in size. The values are parameters that depend on the type of object that needs to be created. In the above example, some are C-strings, some are addresses of integers, and some are function pointers. However, the compiler/linker keeps treating the above data as RW-data, which produces lock-ups after the total exceeds about 1040 bytes.
Does anyone know what might be wrong?