We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I'm using lpc1768 controller keil RTX rtos and uart receive function by an interrupt. I was set a NVIC priority using NVIC_SetPriority(UART1_IRQn,1) while thread processing it don't goes to IRQHandler if any uart rx interrupt was occur. After finish the thread process then goes to IRQ Handler. I don't know how to set a high interrupt priority using RTOS. Please help me to solve this issue.
Thanks & Regards, Prasanth.
Is the RTOS executing in privileged mode?
The following depends on the version of RTX you are using... Did the thread disable interrupts during its execution?
disable_irq() //or similar ... enable_irq() //or similar
Look for tsk_lock(), as well.
Thanks for your response Zack Havens. Yes my RTOS execution in privileged mode and version is 4.81.1. The functions you mentioned disable_irq() and enable_irq() both are defined but commented in cmsis_armcc.h. They didn't gets called anywhere in a program. Another function you mentioned tsk_lock() i can't find it from the program. what i wanna do next?