Displaying heap memory occupation
Posted: Sat Feb 10, 2024 4:11 pm
Hello, everyone,
I have noticed crashes in my ESP32 after several calls to the webserver using the httpd library.
I've also tried httpd_register_uri_handler a very simple function that only gives an HTTP 200 response and every time it receives a call the memory increments by about 300bytes this results in esp going into
Now I'm analysing the problem with the debugger but I can't figure out where the heap memory occupancy is checked.
I notice the memory increase with
Is there any way to see the heap occupancy during debugging? would be the sum of the variables?
Thanks
I have noticed crashes in my ESP32 after several calls to the webserver using the httpd library.
I've also tried httpd_register_uri_handler a very simple function that only gives an HTTP 200 response and every time it receives a call the memory increments by about 300bytes this results in esp going into
Code: Select all
abort() was called at PC 0x420a16be on core 0
Setting breakpoint at 0x40377331 and returning...
I notice the memory increase with
Code: Select all
multi_heap_info_t info;
heap_caps_get_info(&info, MALLOC_CAP_INTERNAL);
info.total_allocated_bytes
Thanks