I have a Mega 2560 board and I am trying to create a really large lookup table in PROGMEM space. I have split my lookup table into 4 pieces of 5000 elements of 4 bytes each, so the total size would be less than 80 Kb while the board has 256 Kb of flash memory. My problem is that the board doesn't seem to be able to handle this amount of data even though it has enough memory. The sketch simply doesn't run at all, it looks like the board is constantly rebooting. If I reduce the size of the data by 1 piece leaving about 60 Kb, it works fine.
I'm using Arduino IDE 0022 on Windows, and the sketch is simply printing the data in a loop.
I think it has something to do with 64 Kb limit for 16-bit pointers, but I don't understand why the code doesn't run at all. Am I correct assuming that progmem arrays are placed after the code? Or is my board simply broken?