Hi
To change the RTOS task stack size, you can refer to phExCcid_cfg.h
You can see the task size is defined in this header file.
For example:
PH_EXCCID_CFG_RTOS_CT_TASK_STACK_SIZE
PH_EXCCID_CFG_RTOS_CLIF_TASK_STACK_SIZE
PH_EXCCID_CFG_RTOS_SYS_TASK_STACK_SIZE
For the heap and stack , the heap and stack grow towards each other. The user has to ensure that the stack and heap do not corrupt each other. It seems the existing settings in the default value is good.
Regards
Daniel