Problem with TouchGFX Designer Template for STM32H7B3I DK
- February 26, 2020
- 16 replies
- 7099 views
Hello,
I have a the following problem:
I create a blank UI template for the STM32H7B3I DK with TouchGFX Designer 4.13.0.
Then, I create a small UI consisting of 1 background box, 1 button, 1 image and 3 interactions. The behavior of the interactions is that when the button is pushed, interaction1 hides image 1, then interaction2 waits 1000ms and then interaction3 shows image1 again.
This works basically. However, after some time (can be minutes, can be seconds), the UI hangs and the button is not responsive anymore. I debugged the application with STM32CubeIDE and found that the software hangs in the following function at line 8 "configASSERT(0);" :
bool STM32TouchController::sampleTouch(int32_t& x, int32_t& y)
{
TS_State_t TS_State = { 0 };
/* This should never fail !! */
if (BSP_TS_GetState(0, &TS_State) != BSP_ERROR_NONE)
{
configASSERT(0);
}
if (TS_State.TouchDetected)
{
x = TS_State.TouchX;
y = TS_State.TouchY;
return true;
}
return false;
}I tried 2 different ways of loading the application to the board: directly with TouchGFX Designer and with STM32CubeIDE. The behavior is the same for both ways.
I did not change anything in the software, it is generated like this by TouchGFX Designer.
I attached my test application to this message.
Has anybody experienced a similar situation or does anybody have a clue what is going wrong here?
Thank you very much in advance for your help. If you need more information, just ask.
