Currently I’m working on a project that uses Cortex-M3 microcontroller and FreeRTOS.
Recently, I found a bug that causes a crash here:
for( pxIterator = ( xListItem * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext )
When it is crashed at this point, the call stack shows likes this:
In the task handler, xqueuereceive function is used to get the message which is posted based on the interrupt.
Can anyone tell, why this is crashed after calling xqueuereceive()?