k3ng / k3ng_rotator_controller

K3NG Arduino Amateur Radio Rotator Controller
http://blog.radioartisan.com/yaesu-rotator-computer-serial-interface/
GNU General Public License v3.0
169 stars 122 forks source link

Sketch too big - text section exceeds available space in board #103

Closed OZ1SEJ closed 1 year ago

OZ1SEJ commented 1 year ago

When using Arduino IDE 2.0.4 to compile for Arduino Uno, I get this compilation error:

Sketch uses 37572 bytes (116%) of program storage space. Maximum is 32256 bytes.
Global variables use 1946 bytes (95%) of dynamic memory, leaving 102 bytes for local variables. Maximum is 2048 bytes.
Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.
text section exceeds available space in board

Compilation error: text section exceeds available space in board

Visiting the URL doesn't help much - the suggested fixes seem to involve quite a bit of code refactoring, and I'm afraid to start messing around too much in here.

It was my impression that this should be able to run on an Arduino Uno. Did I misunderstand this?

k3ng commented 1 year ago

Comment out this line:

https://github.com/k3ng/k3ng_rotator_controller/blob/master/k3ng_rotator_controller/rotator_debug_log_activation.h#L7

( #define DEBUG_DUMP )

...and recompile...

On Tue, Mar 28, 2023 at 5:01 PM Steen Eiler Jørgensen < @.***> wrote:

When using Arduino IDE 2.0.4 to compile for Arduino Uno, I get this compilation error:

Sketch uses 37572 bytes (116%) of program storage space. Maximum is 32256 bytes. Global variables use 1946 bytes (95%) of dynamic memory, leaving 102 bytes for local variables. Maximum is 2048 bytes. Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it. text section exceeds available space in board

Compilation error: text section exceeds available space in board

Visiting the URL https://support.arduino.cc/hc/en-us/articles/360013825179 doesn't help much - the suggested fixes seem to involve quite a bit of code refactoring, and I'm afraid to start messing around too much in here.

It was my impression that this should be able to run on an Arduino Uno. Did I misunderstand this?

— Reply to this email directly, view it on GitHub https://github.com/k3ng/k3ng_rotator_controller/issues/103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNU4GRSUIFER3MJPF6RHLW6NGTLANCNFSM6AAAAAAWLC3TFQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

OZ1SEJ commented 1 year ago

Thanks! That reduced the size to 83%! Perfect :+1: