If the Idle Task could not be created in
vTaskStartScheduler we try to catch this with
configAssert( xReturn );.
But we miss it if errCOULDNOTALLOCATEREQUIREDMEMORY is returned and
configAssert only checks for 0, as in
#define configASSERT( ( x ) ) if( ( x ) == 0 ) vAssertCalled( __FILE__, __LINE__ )
configASSERT( bdFALSE);in case the Idle Task could not be created.
Thanks for pointing this out.
configASSERT( pdFALSE ) will generate compiler warnings about the
expression always evaluating to true, so this has instead been changed to:
configASSERT( xReturn != errCOULDNOTALLOCATEREQUIREDMEMORY );