I have an array of 41,400 elements of type char, which I am trying to put in program memory on a Mega2560. It should have 256KB of flash memory, but when I try to compile my sketch, it says the size of the array is too large. Each char is one byte, so this array should be 41,400 bytes. I'm at a loss as to how this can be too big.
I have also tried using an array of byte variables (should be the same thing) with no success. This is the only variable going into program memory.
Here is the relevant line:
const char Array[] PROGMEM = {0,19,21,25,27,27,27,29,24, ... };
I have included avr/pgmspace.h
Thanks in advance for any help.
<avr/pgmspace.h>
(that part of my question didn't display as I expected). – yigiped May 21 '16 at 19:51error: size of variable 'Array' is too large
– yigiped May 21 '16 at 19:51