-
Notifications
You must be signed in to change notification settings - Fork 39
Display RAM usage #121
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
Comments
Should be easy, but of course it is not... Arduino's 1.5 3rd Party Hardware Specification defines a 'recipe' to query the size of the application. For Apollo3 we use:
So we are identifying the size of the
The size of the data section is a pretty good indication of the amount of RAM used initially (because of course it can't predict dynamic memory usage). So ideally we could just use something like:
However Arduino just doesn't seem to provide any such hook. The closest thing might be the On *nix we might be able to write a one-liner to do that with echo and sed. But I don't know of any built-in (guaranteed) tools that do the same in Windows. So we need a method to handle this in a cross-platform sense. Two options come to mind: (ehh, come to think of it they sort of rely on one another so this is just one option)
So that's my 2¢ |
Linking to a similar issue (calculation of SRAM in use during running) which may help close this one: #205 |
If possible, it would be nice to display RAM usage at the end of successful compilation. Not sure if it can be supported. Looks like the other M0 based Arduinos don't output RAM usage.
After some initial googling it looks possible but I figured Kyle would be much faster to implement than me bumbling around platform.txt.
The text was updated successfully, but these errors were encountered: