cancel
Showing results for 
Search instead for 
Did you mean: 

Touch Interrupt Problem

Charlie CHEN
Associate III

Hi professors,

I am using STM32H743 with my development board,and I am trying to build a Interrupt for the touch function,codes are down below.

By the way, the code is generated by TouchGFX and Board STM32H743I_EVAL.

Pin defined

0690X000008AtMKQA0.png

Interrupt function in C++ file

0690X000008AtMyQAK.png

This is the detecting pin function0690X000008AtNNQA0.png

Last is my test interrupt is break in or not.0690X000008AtNSQA0.png

I tried a lot but it didn`t work.

Is there any one can help?

Thank you!

11 REPLIES 11
Slh
Senior

Check if you have an Interrupt signal on the pin?

Thanks for your reply,but I have no Oscilloscope beside, is there any method can figure it out?

Slh
Senior

Maybe with a LED and Resistor can you see the signal.

Martin KJELDSEN
Chief III

Hi @Charlie CHEN​,

Did you manage to get anywhere on this issue?

/Martin

Hi @Martin KJELDSEN​ ,

Thanks for your reply!

Yes,I am trying to build it with interrupt function,but I face the problem is that in Debug Mode didn`t detect where I touch then run into my Interrupt function.

Is it make the wrong way about build the function?

I have search many method,but was`t solved.

Hope you can help me!

Appreciate that !

Yes,but it did not work.

Or is there any suggestion?

Hi Hans,

Just to be sure: You have no oscilloscope, right? You're still not receiving an interrupt as expected?

/Martin

Yes I have no oscilloscope beside.

The interrupt function should be set the breakpoint in Debug Mode then run the code ,and it can go in to interrupt Subprogram.

If I do not set breakpointm, it will not go in there.

And if you do set one, it does - I suppose.