AnsweredAssumed Answered


Question asked by tdb on Aug 27, 2015
I have a STM32F7746G-DISCO board and am trying to get the STemWinYT graphing working.  All is good until the graph data fills up.
i.e. i call GRAPH_DATA_YT_AddValue() 1 more time than the MaxNumItems given the the GRAPH_DATA_YT_AddValue() function used to set up the graph data.
When i do this, my code goes to the hard fault handler.  If i clear the graph data before overflow, then the problem does not happen.
The Call stack shows if flowing through [GRAPH_AddValue + 0x25] and [__iar_unaligned_aeabi_memcpy4 + 0x47] before the exception frame.
My understanding of the AddValue function is that it should remove the first datapoint before adding the new one.  I get the same results implementing the Segger WIDGET_GraphYT.c example. I am using the IAR compiler and my starting point was the STemWin_HelloWorld example.
Any ideas, or is there a bug in the included STemWin library.