Hi,
I'm using unmodified 'phExCcid' sample project from NXP.
If i define these two global arrays in 'phExCcid.c'.
uint8_t buffer1[300];
uint8_t buffer2[300];
and use this code in "int main(void)" function
buffer1[2] = 0x1;
buffer2[3] = 0x3;
Firmware stops working when creating RTOS tasks.
What I need to change (RTOS tasks stack size, project heap/stack size, project configuration) to able to define & use these arrays?
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