cancel
Showing results for 
Search instead for 
Did you mean: 

My touchscreen is not working properly

ANapa
Associate III

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!

0693W000000VSTcQAO.jpg

17 REPLIES 17
ANapa
Associate III

Suddenly, unexpectedly, the touch events began to work !!

Thanks to all! Thank you very much, Martin!

I will understand what happened.

Martin KJELDSEN
Chief III

Strange, but joyful! 🙂

ANapa
Associate III

Still pleased that the performance of t under stm32h7 is enormous. Everything is very smooth and fast on the screen 1280x800!

Thank you again!

No problem! And yes, the H7 is great! 🙂

TomJJJ
Associate II

Hi,

i have the same issue. How did you solve it?

Thank you

ANapa
Associate III

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 !

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

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​  🙂