configASSERT does not catch errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY

beefc0de wrote on Monday, May 09, 2016:

Problem:
If the Idle Task could not be created in vTaskStartScheduler we try to catch this with
configAssert( xReturn );.
But we miss it if errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY is returned and configAssert only checks for 0, as in
#define configASSERT( ( x ) ) if( ( x ) == 0 ) vAssertCalled( __FILE__, __LINE__ )

*Fix: *
use configASSERT( bdFALSE); in case the Idle Task could not be created.

rtel wrote on Monday, May 09, 2016:

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 != errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY );