I noticed a strange thing! When 3 tasks have been started without enough free stack system crashed! I didn’t return from last xTaskCreate! System crashed in prvAllocateTCBAndStack function - it didn’t come out from:
memset( pxNewTCB->pxStack, tskSTACK_FILL_BYTE, usStackDepth * sizeof( portSTACK_TYPE ) );
When I simply comment this line (it is useful only when debuging) system start working correctly! It means it returned an error code from xTaskCreate function insted of hang up in this function!!
Is it a kind of bug?? Or maybe I made something wrong??
I use FreeRTOS on LPC2364 ARM7 microcontroller.