Heap tracing on ESP32 Arduino
Posted: Sun Jan 26, 2020 9:22 pm
Hi,
I am currently working on an ESP32 project (on PlatformIO) that involves getting data over HTTPS and displaying it on a screen. This works fine, however, I discovered that after every request available heap is shrinking. I would like to enable heap tracing to find the memory leak, but I do not know how/whether this is possible with the Arduino framework.
If it is not, would temporarely moving my PIO-project to ESP-IDF, then building it with heap tracing enabled be somehow possible?
This post suggests that on the Arduino framework menuconfig cannot be changed that easily because some files are pre-compiled:
https://esp32.com/viewtopic.php?t=5225
Is there a way around this?
I am relatively new to the ESP32, so i would appreciate an in-depth explanation.
Thanks in advance
I am currently working on an ESP32 project (on PlatformIO) that involves getting data over HTTPS and displaying it on a screen. This works fine, however, I discovered that after every request available heap is shrinking. I would like to enable heap tracing to find the memory leak, but I do not know how/whether this is possible with the Arduino framework.
If it is not, would temporarely moving my PIO-project to ESP-IDF, then building it with heap tracing enabled be somehow possible?
This post suggests that on the Arduino framework menuconfig cannot be changed that easily because some files are pre-compiled:
https://esp32.com/viewtopic.php?t=5225
Is there a way around this?
I am relatively new to the ESP32, so i would appreciate an in-depth explanation.
Thanks in advance