[PN7462 Development Board] phExCcid Sample

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

[PN7462 Development Board] phExCcid Sample

1,189件の閲覧回数
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,150件の閲覧回数
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 件の賞賛
返信