New answers tagged memory
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 ...
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 ...
Top 50 recent answers are included
Related Tags
memory × 132memory-usage × 39
arduino-uno × 22
arduino-ide × 13
string × 13
programming × 12
eeprom × 11
variables × 11
sram × 11
esp8266 × 9
arduino-nano × 9
c++ × 9
flash × 9
progmem × 9
arduino-mega × 8
esp32 × 7
atmega328 × 7
array × 7
serial × 6
pointer × 6
attiny × 5
c × 4
avr × 4
power × 3
wifi × 3