New answers tagged

4 votes
Accepted

Is there a maximum length of an array in ROM?

It isn't clear whether you meant to put your array in ROM as your question implies, but the code you presented assigns it to RAM. That would surely restrict to your array to less than the 8K of of RAM ...
JRobert's user avatar
  • 15.1k
3 votes

Is there a maximum length of an array in ROM?

In this case the RAM size is the limit. And you'd need some space for stack/heap,.. If you use non-const array, it'll be copied from flash to RAM at the startup On the mega2560 even using const it ...
KIIV's user avatar
  • 4,742

Top 50 recent answers are included