Skip to content

Global variables filling dynamic memory #1

@EarlJr53

Description

@EarlJr53

Before integrating this library into my code, I have tried compiling Example01_BasicReadingsI2C.ino for my Arduino Mega 2560. When compiling in Arduino IDE, I get an error that the example sketch is using >100% of my Arduino's dynamic memory. I don't see any obviously offending code in the sketch itself, so I am inclined to believe the issue lies in the library itself.

I would love your thoughts on how to get this library to run on my Mega, thank you! Full error message text below.

Sketch uses 23234 bytes (9%) of program storage space. Maximum is 253952 bytes.
Global variables use 8984 bytes (109%) of dynamic memory, leaving -792 bytes for local variables. Maximum is 8192 bytes.
Not enough memory; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing your footprint.
data section exceeds available space in board

Compilation error: data section exceeds available space in board

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions