Bjoerns-TB / ttn-gps-tracker

GPS Tracker for TTN
GNU General Public License v3.0
17 stars 16 forks source link

Sketch too big? #3

Closed aarpi3 closed 4 years ago

aarpi3 commented 4 years ago

First; thanks for the guide at the ttn site and the code.

I just tried to copy your project with a brand-new feather 32u4 lora and a gps featherwing but while compiling it fails for 32u4. “Sketch too big”. According to Arduino IDE I use 29908 bytes / 104% (Max. 28672 bytes).

Common problem or just my setup?

again, thanks!

`Arduino: 1.8.10 (Windows 10), Board: "Adafruit Feather 32u4"

Sketch uses 29908 bytes (104%) of program storage space. Maximum is 28672 bytes. Global variables use 2112 bytes of dynamic memory. Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it. Error compiling for board Adafruit Feather 32u4.`

aarpi3 commented 4 years ago

Have not tested it yet but assume that I can live without the section below which brings the sketch down below 100%.

// For one second we parse GPS data and report some key values for (unsigned long start = millis(); millis() - start < 1000;) { while (Serial1.available()) { char c = Serial1.read(); //Serial.write(c); // uncomment this line if you want to see the GPS data flowing gps.encode(c); } }