UART Interrupt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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:
- Not only UART interrupts causes the crash, in fact any external interrupt would show the same behaviour.
- The issue is resolved whenever I turn off FreeRTOS. But as you recognize, no FreeRTOS = No TouchGFX.
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
- Labels:
-
FreeRTOS
-
TouchGFX
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-15 1: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-15 1:14 AM
Hello ,
thank you for your reply,
In the debug screen I have the following registers shown.
I am using Keil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-15 1:21 AM
Also I am not changing the configuration of GUI Task , I am using templates provided in TouchGFX designer ,,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-15 1:52 AM
No, the SCB registers, like here:
