Skip to main content
Associate III
April 29, 2024
Solved

Touchgfx main screen actions halts due to usart rx interrupt callback

  • April 29, 2024
  • 1 reply
  • 1038 views

Hello,

I am a beginner in STM32 and Touchgfx. I am having a touchgfx application which has multiple screens. The main screen in touchgfx should update the live data received from Uart Rx. When a button in main screen is clicked, it should navigate to other screens. I am using an interrupt callback to receive the Uart data. The problem I am facing right now is, the Uart Rx is working fine through interrupt callback, and the data is being updated in mainscreen. But when the button is clicked, nothing happens. I suspect it's due to interrupt is being serviced often. Unfortunately my Uart DMA receive doesn't work and I am able to receive data only through interrupt callback. Can someone Hed some light on my issue?

 

Thanks and Regards

 

 

This topic has been closed for replies.
Best answer by RiverDi_user

Hello There,

I was able to fix the issue. I was focusing on the Rx callback and didnt realize I was using a blocking call for Tx. I figured it out and now I am able to receive the UART data aswell as I could use the touch screen in UI.

Regards

1 reply

RiverDi_userAuthorBest answer
Associate III
April 30, 2024

Hello There,

I was able to fix the issue. I was focusing on the Rx callback and didnt realize I was using a blocking call for Tx. I figured it out and now I am able to receive the UART data aswell as I could use the touch screen in UI.

Regards