I have an ATtiny and am trying to send a very large byte array stored in a separate .h
file over SoftwareSerial:
for (int i=0; i<numElements; i++) {
softSerial.println(myList[i]);
}
I imagine it will very slow, which is fine, but I'm getting a cryptic error when compiling:
Firmware.ino.elf section `.data' will not fit in region `text'
It seems that this is due to the println()
command running out of memory for some reason – if I comment out the println()
command everything works fine. How to fix this?