Compiling with SoftwareSerial.h not possible (ATtiny2313, memory problem) #518
Replies: 1 comment 2 replies
-
Why software serial??? There is a real hardware serial port just sitting there.. hardware serial is generally less resource hungry than software serial and works better. That alone might save you enough to get in under the limit,, check also
Anyway, my other tip would be to use a part with more than 2k of flash. The 2313 is the lamest part supported by this core (okay, maybe the 24 is worse). I am amazed how many people are still using these dreadful ancient parts. They aren't even particularly cheap! digikey lists them for like 75 cents/ea in cheapest package that can be soldereed without advanced techniques, no minimum order, which would get you into 8k flash tinyAVR 0/1-series parts, and it's very close to the price of the stand-out ATtiny1614, with 16kl flash, 2k ram, and the "good set" of tinyAVR 1-series peripherals (the 16k and 32k 1-series have a second ADC, second type B timer, and some other goodies that I can't remember off hand atm). |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to compile a very simple program with the library SoftwareSerial.h for an ATtiny2313 and I get the error message directly:
The program code looks like this:
I use the Arduino IDE 1.8.13 and the ATTinyCore 1.4.1.
The same problem occurs when I try to compile the program with PlatformIO.
Am I doing something wrong? Do you have a tip for me? For the final program (a multiplexer for Nixie tubes) I only need the "serial read function", but for debugging it would be great for me to be able to read as well as write serially.
Would be great if you could help me.
Beta Was this translation helpful? Give feedback.
All reactions