Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Arduino IDE 1.5.x to support detecting and reporting out of RAM conditions #1377

Merged
merged 3 commits into from May 3, 2013

Conversation

penguin359
Copy link

This is my original RAM check patch ported to the Arduino IDE 1.5.x branch, but otherwise unchanged. This reports RAM usage on all AVR boards, but also percentage of statically used RAM when available. It will stop a compile with an error if more than 90% of RAM is allocated statically.

This resolves issue arduino#1356 and add the ability for the Arduino IDE to
detect the amount of RAM allocated to a sketch and compare that to the
available RAM on each board. If RAM is more than 90% full, it will fail
on building since there is not enough free RAM for the heap and stack to
use.
Changed memory usage check to only fail build on 100%+ usage and added a
configurable warning level for memory usage defaulting to 75%.

Clarified error and warning messages related to memory usage to specify
that this is the minimum memory usage.
@matthijskooijman
Copy link
Collaborator

For reference, this pullreq fixes issue #1356

cmaglie added a commit that referenced this pull request May 3, 2013
@cmaglie cmaglie merged commit 090f721 into arduino:ide-1.5.x May 3, 2013
@cmaglie
Copy link
Member

cmaglie commented May 3, 2013

Merged, thank you!
Just fixed indentation, and some small adjustments.

May you make a configuration file also for Arduino Due?

C

@penguin359 penguin359 deleted the ide-1.5.x-ram branch May 3, 2013 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants