8 years, 9 months ago.

store bitmap in flash

hello

i want to store few 5k bitmaps into flash, but the compiler puts it into ram. can someone tell me how to setup the array´s and using it? b_alarm.c: unsigned char balarm[]={8 pixel per row 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...........

main.cpp:

extern unsigned char balarm[];

how do i have to change so it would be in Flash not in ram??

thx

wollywell

Question relating to:

Lib for the new LCD Display with ILI9341 controller

1 Answer

8 years, 9 months ago.

Add 'const' in front: const unsigned char. Then it is put into the flash.

Accepted Answer

Thx i tried and it´s now in flash stored.

  • wave*
posted by Thomas Schwarz 12 Mar 2016