grease_lighting
Well-known member
First off I am running Arduino 1.6.5-r2 with Teensyduino 1.24 on a windows 7 machine. I am using a Teensy 3.1.
Basically my project talks to a device over the Ethernet using UDP messages and I compare the results to an expected character array. As I started adding more detail to my character strings I crossed a line where Ethernet begin(mac, ip) would hang at about 63K bytes of program storage space. My global variables use is 5,396 bytes. As a test I hacked out a bunch of code untill it was about 56K in size and it worked again (did not hang).
I am using a knock off Arduino W5100 shield.
I am not using an SD Card in this project. I have read about the dangers using combo SD and Ethernet shields.
I was under the impression that I had 256k available, but am only 25% there. Are there some caveats to creating large programs? Is this related to the level of Arduino I am using? Is the .h file usage included in the program storage space?
I searched 'max sketch size' but no joy.
Basically my project talks to a device over the Ethernet using UDP messages and I compare the results to an expected character array. As I started adding more detail to my character strings I crossed a line where Ethernet begin(mac, ip) would hang at about 63K bytes of program storage space. My global variables use is 5,396 bytes. As a test I hacked out a bunch of code untill it was about 56K in size and it worked again (did not hang).
I am using a knock off Arduino W5100 shield.
I am not using an SD Card in this project. I have read about the dangers using combo SD and Ethernet shields.
I was under the impression that I had 256k available, but am only 25% there. Are there some caveats to creating large programs? Is this related to the level of Arduino I am using? Is the .h file usage included in the program storage space?
I searched 'max sketch size' but no joy.