Can portEND_SWITCHING_ISR() cause problems if not called with the result from e.g. xQueueSendToBackFromISR()?
I have a preemptive coldfire target where i have issues with getting caught in vListInsert() sometimes. (a few times a week). Stacks are ok, and all looks to be fine. I end up in vListInsert() when a particular task is checking its message queue.
I have pinpointed that it has something to do with a particular interrupt posting to this message queue.
One thing that I have found, is that the interrupt, sometimes does not take care of the return code from xQueueSendToBackFromISR(), hence no task switch.
I’m going to fix my code, but I wonder if this can cause this kind of error? Gut feeling says no…