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.
Hello!!
I hace a problem with os_tmr_create and os_tmr_kill. I need use these functions in the USART interrupt, but when the procesor run this line it goes to Hard Fault.
Can you help me please?
I know that this isn't the best solution, but in may application is very difficult any other solution with the RTOS, in this question the other solution is to use directly a timer of the microcontroller and the hardware interrupts.
In the RTL.h you can see that the call to these function seem the same that de os functions, and there is others isr thar are directly the rt function:
#define isr_mbx_check(mbx) rt_mbx_check(mbx)
I've checked that the program works correctly, but I will try to solve this in other way.
How about:
- create a high-priority task that starts the timer - from the UART isr, activate the task using the available isr_* functions
This way, the timer will be started right after the UART isr finishes.