Internal RAM Info

formus14
Posts: 8
Joined: Wed Nov 15, 2017 3:22 pm

Internal RAM Info

Postby formus14 » Wed May 30, 2018 8:10 am

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

ESP_Sprite
Posts: 9582
Joined: Thu Nov 26, 2015 4:08 am

Re: Internal RAM Info

Postby ESP_Sprite » Wed May 30, 2018 10:31 am

The heap allocator has a bunch of functions to query memory usage, maybe those do what you want.

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Internal RAM Info

Postby fly135 » Wed May 30, 2018 9:29 pm

heap_caps_get_free_size(MALLOC_CAP_INTERNAL)

formus14
Posts: 8
Joined: Wed Nov 15, 2017 3:22 pm

Re: Internal RAM Info

Postby formus14 » Mon Jun 04, 2018 7:19 am

fly135 wrote:heap_caps_get_free_size(MALLOC_CAP_INTERNAL)
Thanks, it worked fine :)

Who is online

Users browsing this forum: BinaryPoet and 245 guests