I’ve a problem with FreeRtos, i’m programming on CORTEX M3.
My application is very easy, there is a task that waits on semaphore
and toggle a led, the semaphore is give by a ISR:
The problem is that when the API "xSemaphoreGiveFromISR" is called ,
the programm crashes.
If i don’t use API the programm runs…
Can someone help me?
thanks
The semaphore is created correctly.
I see, that xSemaphoreGiveFromISR() runs correctly, the program crashes on portYIELD(), infact doesn’t force context switch…
portYIELD() should not cause a context switch directly - the switch is just pended. Try placing a break point on the function called xPortPendSVHandler() in port.c.