{"id":16148906,"url":"https://github.com/erriez/erriezmemoryusage","last_synced_at":"2025-06-10T17:35:18.701Z","repository":{"id":85067610,"uuid":"117431922","full_name":"Erriez/ErriezMemoryUsage","owner":"Erriez","description":"Memory usage library for Arduino","archived":false,"fork":false,"pushed_at":"2020-08-28T16:10:33.000Z","size":537,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T21:33:49.309Z","etag":null,"topics":["arduino","avr","debug","diagnostics","documentation","examples","free","library","memory","memory-allocation","uno","usage"],"latest_commit_sha":null,"homepage":"https://github.com/Erriez/ErriezArduinoLibrariesAndSketches","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Erriez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-14T13:20:34.000Z","updated_at":"2021-03-29T17:48:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"146e74f7-1a7f-4e00-bc07-ae17fcb81a24","html_url":"https://github.com/Erriez/ErriezMemoryUsage","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erriez%2FErriezMemoryUsage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erriez%2FErriezMemoryUsage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erriez%2FErriezMemoryUsage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erriez%2FErriezMemoryUsage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Erriez","download_url":"https://codeload.github.com/Erriez/ErriezMemoryUsage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erriez%2FErriezMemoryUsage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259118313,"owners_count":22807946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","avr","debug","diagnostics","documentation","examples","free","library","memory","memory-allocation","uno","usage"],"created_at":"2024-10-10T00:35:13.886Z","updated_at":"2025-06-10T17:35:18.674Z","avatar_url":"https://github.com/Erriez.png","language":"C++","readme":"# Memory Usage library for Arduino AVR targets\n[![Build Status](https://travis-ci.org/Erriez/ErriezMemoryUsage.svg?branch=master)](https://travis-ci.org/Erriez/ErriezMemoryUsage)\n\nThis Arduino library prints memory usage on the Serial port.\n\n![Memory usage](https://raw.githubusercontent.com/Erriez/ErriezMemoryUsage/master/extras/ErriezMemoryUsage.png)\n\n\n## Features\nThis library provides:\n* Print memory usage on the serial console \n* Get stack and heap size\n* Get .data and .bss sections size\n\n\n## Examples\n\nArduino IDE | Examples | Erriez Memory Usage:\n\n* [PrintMemoryUsage](https://github.com/Erriez/ErriezMemoryUsage/blob/master/examples/ErriezPrintMemoryUsage/ErriezPrintMemoryUsage.ino)\n\n\n## Documentation\n\n* [Doxygen online HTML](https://erriez.github.io/ErriezMemoryUsage)\n* [Doxygen PDF](https://github.com/Erriez/ErriezMemoryUsage/raw/master/ErriezMemoryUsage.pdf)\n\n\n### Print memory usage on serial port\n```c++\nvoid setup()\n{\n  // Initialize serial port\n  Serial.begin(115200);\n  \n  // Print memory usage\n  printMemoryUsage();\n}\n```\n\n#### Output serial port Arduino Uno\n```c++\nSRAM size:  2048 Bytes\n.data size: 22 Bytes\n.bss size:  170 Bytes\nStack size: 2 Bytes\nHeap size:  0 Bytes\nFree mem:   1854 Bytes\n```\n\n### Get RAM size\nGet total on-chip SRAM size in Bytes:\n```c++\nunsigned int ramSize = getRamSize();\n```\n\n### Get free memory\nGet free memory size which can be allocated between stack and heap: \n```c++\nunsigned int freeMemSize = getFreeMemSize();\n```\n\n### Get stack size\n```c++\nunsigned int stackSize = getStackSize();\n```\n\n### Get heap size\n```c++\nunsigned int heapSize = getHeapSize();\n```\n\n### Get .data section size\n```c++\nunsigned int dataSize = getDataSectionSize();\n```\n\n### Get .bss section size\n```c++\nunsigned int bssSize = getBssSectionSize();\n```\n\n\n## Library installation\n\nPlease refer to the [Wiki](https://github.com/Erriez/ErriezArduinoLibrariesAndSketches/wiki) page.\n\n\n## Other Arduino Libraries and Sketches from Erriez\n\n* [Erriez Libraries and Sketches](https://github.com/Erriez/ErriezArduinoLibrariesAndSketches)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferriez%2Ferriezmemoryusage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferriez%2Ferriezmemoryusage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferriez%2Ferriezmemoryusage/lists"}