Reading memory sections sizes

Modified on Sun, 25 Dec, 2022 at 3:05 PM

To use the following functions, include library HC_Sram.h to access and work with the supplied variable called “HC_sram”.



Data section

  • HC_sram.getAddress_DataStart()      => return start address (unsigned int)
  • HC_sram.getAddress_DataEnd()        => return end address (unsigned int)



Bss section

  • HC_sram.getAddress_BssStart()         => return start address (unsigned int)
  • HC_sram.getAddress_BssEnd()           => return end address (unsigned int)



Heap

  • HC_sram.getAddress_HeapStart()      => return start address (unsigned int)
  • HC_sram.getAddress_HeapEnd()        => return end address (unsigned int)
  • HC_sram.getAddress_HeapBreakValue(probe)  => return Brake Value address (unsigned int)



Stack

  • HC_sram.getStackPointer(probe)       => return Stack Pointer value (unsigned int)



Free RAM

  • HC_sram.getFreeRAM(probe)             => return Free RAM size (unsigned int)






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 at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article