Sram monitoring

Modified on Tue, 27 Dec 2022 at 03:50 PM

Our base library lets you read the sizes of the different memory sections and the size of the Free RAM. As all these sizes vary depending on which part of your program is being executed, the library supplies 3 probes which can be put at 3 different places inside your program to perform SRAM measurement. However, you can only place Probe 1 and 2, as Probe 0 is placed by default at the beginning of the HC_communicate() function.


To use Probe 1 and 2 :

#include <HC_Sram.h>


Refer to section What is SRAM? to learn more about SRAM.

Refer to section Identifying SRAM shortage to learn what to do when you are running out of it.






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article