[PN7462 Development Board] phExCcid Sample

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

[PN7462 Development Board] phExCcid Sample

1,157 次查看
EE_Ark
Contributor II

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?

 

 

0 项奖励
回复
1 回复

1,118 次查看
danielchen
NXP TechSupport
NXP TechSupport

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

 

 

 

 

 

0 项奖励
回复