RTCS pre-defined parameter (PCB,Pool,socket)

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

RTCS pre-defined parameter (PCB,Pool,socket)

跳至解决方案
1,583 次查看
daweiyou
NXP Employee
NXP Employee

Hi all:

We could find some pre-defined parameter for RTCS applications, like below:

   /* runtime RTCS configuration for devices with small RAM, for others the default BSP setting is used */

   _RTCSPCB_init = 4;

   _RTCSPCB_grow = 2;

   _RTCSPCB_max = 20;

   _RTCS_msgpool_init = 4;

   _RTCS_msgpool_grow = 2;

   _RTCS_msgpool_max  = 20;

   _RTCS_socket_part_init = 4;

   _RTCS_socket_part_grow = 2;

   _RTCS_socket_part_max  = 20;

user could modify the default value, I want to know,

(1)How these values work? since Max value is defined and allocated, why not set the init value same with Max value?

(2)how to decide these value for one specified application? for example, I open one FTP, one SNMP, maybe one HTTPs application together, how to calculate the right value?

(3)when the value is not renough, how to check? I see  some task crashed in MQX spy tool. but no guide to use this tool.

thx!

标签 (1)
0 项奖励
回复
1 解答
1,195 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Dawei:

The following link is for the document (draft)

MQX RTCS Memory Configuration Parameters Introduction

Have a great day,
Daniel

-

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,195 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Dawei:

Please let me answer your questions

Each socket has its own PCBs and each PCB has its own msgpool.

we cann't set the init value same with Max value, because we want spend less RAM in the sockets in most cases.

If you will have a total of 8 sockets then suggest the following settings

_RTCSPCB_init = 8;

_RTCSPCB_grow = 2;

_RTCSPCB_max = 10;

_RTCS_msgpool_init = 8;

_RTCS_msgpool_grow = 2;

_RTCS_msgpool_max = 10;

_RTCS_socket_part_init = 8;

_RTCS_socket_part_grow = 2;

_RTCS_socket_part_max = 10;

You can check and debug this value with TAD.

I am trying to make a document about this later.
Have a great day,
Daniel

1,195 次查看
daweiyou
NXP Employee
NXP Employee

Thx, Daniel, If you have such doc, PLS share with me.

So, as you said, if I could confirm my socket number, so PCB,Poll,&socket is decided same as socket number?

It's enough for entire application? I could try for this guide.

0 项奖励
回复
1,196 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Dawei:

The following link is for the document (draft)

MQX RTCS Memory Configuration Parameters Introduction

Have a great day,
Daniel

-

0 项奖励
回复
1,195 次查看
daweiyou
NXP Employee
NXP Employee

thx

0 项奖励
回复