I have verified that there is a maximum possible task stack size of 64KB as a result of casting the thread_def->stacksize variable as uint16_t in file fsl_os_abstraction_free_rtos.c
line 386: (uint32_t)((uint16_t)thread_def->stacksize / sizeof(portSTACK_TYPE)), /* task stack size /
line 403: (configSTACK_DEPTH_TYPE)((uint16_t)thread_def->stacksize / sizeof(portSTACK_TYPE)), / task stack size */
Sometimes a stack size larger than 64KB is required, so it is advisable to remove that casting
I have verified that there is a maximum possible task stack size of 64KB as a result of casting the thread_def->stacksize variable as uint16_t in file fsl_os_abstraction_free_rtos.c
line 386: (uint32_t)((uint16_t)thread_def->stacksize / sizeof(portSTACK_TYPE)), /* task stack size /
line 403: (configSTACK_DEPTH_TYPE)((uint16_t)thread_def->stacksize / sizeof(portSTACK_TYPE)), / task stack size */
Sometimes a stack size larger than 64KB is required, so it is advisable to remove that casting