RTCS_create() returns "RTCSERR_CREATE_POOL_FAILED"

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

RTCS_create() returns "RTCSERR_CREATE_POOL_FAILED"

ソリューションへジャンプ
2,205件の閲覧回数
panpwr
Contributor IV

Hello,

When I am trying to use RTCS_create(), I am receiving "RTCSERR_CREATE_POOL_FAILED". I understand that it is somehow related to lack of message pool memory, but I don't know how to configure RTCS to overcome this porblem.

I've tried playing with the following values, and even with the following high values - the error persists:

_RTCS_msgpool_init   = 300;   //default = 32

_RTCS_msgpool_grow = 100;  //default = 16

_RTCS_msgpool_max  = 400;  //default = 160


My system has 2 message pools I've explicitly created by using _msgpool_create():

The first pool:

message_size = 9 bytes

num_messages = 10

grow_number = 0

grow_limit = 0 (unlimited)

The second pool:

message_size = 13 bytes

num_messages = 10

grow_number = 0

grow_limit = 0 (unlimited)

Please advise.

Thanks,

Lior.

ラベル(1)
1 解決策
641件の閲覧回数
panpwr
Contributor IV

Found the problem:

I've replaced the order of the calls so RTCS_Create will be first, and afterwards the 2 calls for _msgpool_create():

The RTCS_Create passed correctly, and so was the 1st _msgpool_create(). However, the 2nd _msgpool_create() call returned MSGPOOL_OUT_OF_POOLS error.

Looking at the MQX Reference manual I've realized that MAX_MSGPOOLS in the MQX initialization structure should be increased (and not the _RTCS_msgpool_* variables as I initially thought).


Therefore, I've updated the BSP_DEFAULT_MAX_MSGPOOLS value from mqx\source\bsp\<board_name>\<board_name>., recompiled BSP and PSP libraries - and it all went well.

元の投稿で解決策を見る

1 返信
642件の閲覧回数
panpwr
Contributor IV

Found the problem:

I've replaced the order of the calls so RTCS_Create will be first, and afterwards the 2 calls for _msgpool_create():

The RTCS_Create passed correctly, and so was the 1st _msgpool_create(). However, the 2nd _msgpool_create() call returned MSGPOOL_OUT_OF_POOLS error.

Looking at the MQX Reference manual I've realized that MAX_MSGPOOLS in the MQX initialization structure should be increased (and not the _RTCS_msgpool_* variables as I initially thought).


Therefore, I've updated the BSP_DEFAULT_MAX_MSGPOOLS value from mqx\source\bsp\<board_name>\<board_name>., recompiled BSP and PSP libraries - and it all went well.