cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Graph Hard Fault with Large Data Points

Riya_L
Associate II

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.


2 REPLIES 2
PeterVang
ST Employee

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

Andrew Neil
Super User

debugging Cortex-M Hard Faults

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.