[PN7462 Development Board] phExCcid Sample

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[PN7462 Development Board] phExCcid Sample

504 Views
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 Kudos
1 Reply

465 Views
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 Kudos