Hi Bruce,
I'd recommend you to declare these bitmaps as constant instead of static variables e.g.:
const unsigned char BitMapImage[] = {0,1,2,3,4};
BitMapImage will be placed into .rodata
if you want to have them in a custom flash section you should adjust your linker file (.ld)
KEA.ld:
...
.text :
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
*(.rodata) /* .rodata sections (constants, strings, etc.) */
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
*(.glue_7) /* glue arm to thumb code */
*(.glue_7t) /* glue thumb to arm code */
*(.eh_frame)
KEEP(*(.my_bitmap_flash)) /* bitmap flash section*/
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
} > FLASH_2
}
source file:
__attribute__((section(".my_bitmap_flash")))
const unsigned char BitMapImage[] = {0,1,2,3,4};
Hope it helps.
Stan