2019-04-15 12:29 AM
Hi everybody,
I am working on a TouchGFX project apparently , and I need to use UART in interrupt mode.
How ever, I spent the last 10 days trying to configure the UART IRQ to work properly with no success yet so far.
The problem is whenever a UART interrupt is triggered, the program crashes.
In the time I was investigating the issue, I found out the following:
So currently I am quite sure that I am having the issue because interrupts should be configured differently when working with FreeRTOS.
The thing is I don't have any experience with FreeRTOS, and this is my first project with FreeRTIS implemented. I tried reading some documentations and books. But couldn't figure it out.
I need to know the proper way to get UART working in Interrupt mode with TouchGFX and FreeRTOS running.
I appreciate your assistance
2019-04-15 01:01 AM
Have you tried to decode the SCB register values after the crash ?
They should tell you about the cause.
Perhaps you have FreeRTOS configured to use MPU sections, or got a stack overflow.
2019-04-15 01:14 AM
Hello ,
thank you for your reply,
In the debug screen I have the following registers shown.
I am using Keil
2019-04-15 01:21 AM
Also I am not changing the configuration of GUI Task , I am using templates provided in TouchGFX designer ,,
2019-04-15 01:52 AM
No, the SCB registers, like here: