Skip to main content
Arduino

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

SoftwareSerial runs out of "text" space on ATtiny

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?

Answer*

Draft saved
Draft discarded
Cancel
1
  • Thanks – 140kb is the ascii representation of all those bytes. I had read that it gets crunched down to binary on compile, and was trying to see if it fit. Didn't realize the array would be ignored until invoked by println(). Commented Mar 2, 2018 at 17:47

AltStyle によって変換されたページ (->オリジナル) /