I'm getting some weird behavior in my sketch when I have a long array greater than 70 elements or so with an ATMEGA8. I suspect I am running out of SRAM, is there a way I can tell for sure (some sort of reporting or calculations)?
The ATMEGA8 has 1K of SRAM. a long variable has 32 bits. So a 70 element array would be 70*32 = 2240bits = 280 bytes Am I doing the math correctly?