This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Timeslot and FreeRTOS problem

I am developing Timeslot program with FreeRTOS. (on nRF51822)

timeslot's signal handler is timeslot_signal_callback() ... xQueueSendFromISR(s_timeslot_queue, &cmd, NULL); ..

A few minute age, HardFault was occured.

When xQueueSendFromISR is erase, not occured.

What am I doing wrong?

Parents
  • The timeslot callback is called with the highest priority 0, and you are not allowed to call FreeRTOS API from this priority.

    you can only call the FreeRTOS API from priority equal or lower than configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY defined in FreeRTOSConfig.h file.

    Equal or lower in priority level means equal or higher in number.

    In short, you cannot call FreeRTOS API from timeslot.

Reply
  • The timeslot callback is called with the highest priority 0, and you are not allowed to call FreeRTOS API from this priority.

    you can only call the FreeRTOS API from priority equal or lower than configLIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY defined in FreeRTOSConfig.h file.

    Equal or lower in priority level means equal or higher in number.

    In short, you cannot call FreeRTOS API from timeslot.

Children
Related