2026-05-04 10:51 PM
Hi,
I’m working on an STM based UI with multiple dynamic graph widgets on a single screen and running into a hard fault when scaling things up. Right now I have 5 graph widgets, each needing to plot around 700 data points dynamically. However, when I configure all 5 graphs with 700 points each, the screen crashes. The most stable setup I’ve managed so far is about 200 points per graph, anything beyond that consistently leads to a hard fault (which seems memory related).
My goal is to reliably support 5 graphs × 700 points on the same screen. I’m trying to understand what could be causing the crash, whether it’s heap or stack limitations, frame buffer constraints, or something else in the graphics pipeline. It would be helpful to know how to narrow this down effectively.
2026-05-07 12:18 AM
Hi,
Insufficient stack, heap and FreeRTOS heap size can be the cause of hardfaults when your TouchGFX GUI becomes more complex. You can try increasing these to see if this solves your issue.
A screen with 5 graphs with 700 points each will have a very long render time on most platforms. Can you share more details about your MCU setup and display type and size?
Best regards
Peter
2026-05-07 12:21 AM
debugging Cortex-M Hard Faults