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

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

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

Jump to solution
975 Views
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!

Labels (1)
0 Kudos
1 Solution
587 Views
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

-

View solution in original post

0 Kudos
4 Replies
587 Views
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

587 Views
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 Kudos
588 Views
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 Kudos
587 Views
daweiyou
NXP Employee
NXP Employee

thx

0 Kudos