hi jiri,
yes,These two macros (taskFIRST_CHECK... and taskSECOND_CHECK...) are defined StackMacros.h, and functions called by this macros are implemented in tasks.c,,configCHECK_FOR_STACK_OVERFLOW is defined FreeRTOSConfig.h it's value is 2, portSTACK_GROWTH is defined portmacro.h, it's value is -1, but after build , show error as "undefined reference to vApplicationStackOverflowHook" and "undefined reference to vApplicationStackOverflowHook", so i send you my project ,may i help you to analyze it,thanks very much.
best regards!