Page 1 of 1

Internal RAM Info

Posted: Wed May 30, 2018 8:10 am
by formus14
Just wondering if there is any API function that print information about the internal RAM, like how much free space left for example.

P.S.
xPortGetFreeHeapSize - > Gives information about the overall Memory space including external RAM .

Thanks

Re: Internal RAM Info

Posted: Wed May 30, 2018 10:31 am
by ESP_Sprite
The heap allocator has a bunch of functions to query memory usage, maybe those do what you want.

Re: Internal RAM Info

Posted: Wed May 30, 2018 9:29 pm
by fly135
heap_caps_get_free_size(MALLOC_CAP_INTERNAL)

Re: Internal RAM Info

Posted: Mon Jun 04, 2018 7:19 am
by formus14
fly135 wrote:heap_caps_get_free_size(MALLOC_CAP_INTERNAL)
Thanks, it worked fine :)