Dynamic Graph Hard Fault when touched
- February 23, 2021
- 3 replies
- 2604 views
Hi,
It seems that there is a bug where a hard fault is triggered when dragging a finger on a dynamic graph area.
I have tested this behavior on an STM32F746G-DISCO as well as on a custom board with an H743.
In my case, the hard fault gets only triggered if there are enough objects on the screen and when the graph is not on the start screen. I guess it depends on the memory footprint.
I have increased the project heap and stack size to 4096 and Touchgfx heap size to 8192 with no changes.
I cannot see where the hard fault happens as it seems to be inside the TouchGfx library.
The attached code is for an STM32F746G-DISCO.
To reproduce the error, click on the central button to open screen2 with the graph is. Then drag a finger on the graph.
The other buttons and the custom container are not used, they are just here because the hard fault is not triggered without them.