I’m having a Hard Fault while the vListInsertEnd function is called.
The program currently just runs two takes: Main Task gives every second a semaphore so that Task2 can run. I have disabled all IRQ to be sure that is not a IRQ priority issue. I have also increase the size of the stack for each task to be sure that there is no stack overflow. Do you have some other idea to debug this hard fault ?
PS: I’m running FreeRTOS 8.0.1 on a samr21 from atmel (cortex-M0+)
No - there are no asserts in the vListInsertEnd() function - but there
are plenty of asserts elsewhere in the code that might trap whatever has
gone wrong before vListInsertEnd() was called.
You didn’t say if you have configASSERT() defined.