2020-04-07 04:18 AM
Hi All.
I have my own development board on STM32.
TouchGfx 4.13.0 is ported to it.
Displays box, button, scrollbox and text.
The coordinates of the touchscreen I pass to
bool STM32TouchController::sampleTouch(int32_t& x, int32_t& y)
{
if(touchDataReady == true)
{
x = tscX; // tscX is correct and given from I2C4 STM32H7BIT6
y = tscY; // tscY is correct and given from I2C4 STM32H7BIT6
touchDataReady = false;
return true;
}
return false;
}
This function is permanently called from the TouchGfx kernel.
On "View", the overrided "handleTickEvent()" works well, but my overrided
"handleClickEvent()" not called.
The screen does not respond to clicks.
This is my third development with the TouchGfx.
Used version 4.13.0 and STM32H746BIT6
Two previous boards were built on controllers STM32F746 with TouchGfx 4.10.0
and work fine.
Help me, please!
2020-04-07 06:34 AM
Suddenly, unexpectedly, the touch events began to work !!
Thanks to all! Thank you very much, Martin!
I will understand what happened.
2020-04-07 06:38 AM
Strange, but joyful! :)
2020-04-07 06:56 AM
Still pleased that the performance of t under stm32h7 is enormous. Everything is very smooth and fast on the screen 1280x800!
Thank you again!
2020-04-08 12:32 AM
No problem! And yes, the H7 is great! :)
2020-07-23 02:05 PM
Hi,
i have the same issue. How did you solve it?
Thank you
2020-07-23 03:51 PM
Hi,
It was an excruciating floating bug.
After a lot of trying to figure it out, it became clear that this is a hardware problem. Bad contact in the touchscreen circuits.
I can add, also, that this helped me a lot when diagnosing the problem: https://www.dreamsourcelab.com/shop/logic-analyzer/dslogic-plus/
Good luck TomJJJ !
2020-07-23 11:22 PM
Thank you,
But i'm not sure about it. Because like you I see the touch work properly. Also if I simulate a touch in the touchgfx sample touch function the library doesn't work. I see the same thing on your video . Your touch was working but there wasn't an effect on library.
Thank you
2020-08-10 03:07 AM
Hi,
What does this mean exactly? " if I simulate a touch in the touchgfx sample touch function the library doesn't work."
Also, nice find @ANapa :)