Daniel kalu
Daniel kalu
DIIDevHeads IoT Integration Server
Created by Daniel kalu on 10/3/2024 in #middleware-and-os
Debugging Memory Management & Task Scheduling Issues in FreeRTOS on ESP32
Hey guys while developing a FreeRTOS-based realtime application on ESP32 to manage multiple industrial sensors, l've encountered system crashes and memory management issues, likely due to stack overflows and improper task scheduling. I've previously tried standard debugging methods like increasing stack size and adjusting task priorities. Would advanced tools like FreeRTOS Tracealyzer or ESP-IDF's built-in debugging be more effective for this scenario? Additionally, when it comes to memory management, should I focus on static memory allocation to avoid fragmentation, or is dynamic allocation more efficient in handling varying task loads?
5 replies