This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

os_tmr_create

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?

Parents
  • 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.

Reply
  • 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.

Children
  • 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.