K60N512VMD100 and MQX RAM allocation (Unable to use full RAM)

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

K60N512VMD100 and MQX RAM allocation (Unable to use full RAM)

585 次查看
Dc5e
Contributor I

Hi,

 

I'm using the Kinetis K60N512VMD100 with MQX 3.7 and Codewarrior 10.1. I'm trying to use the http server and some sockets at the same time but I noticed that the tasks with the sockets and http server have an error code of PART: Out of Blocks. I'm guessing this means that I've ran out of memory to allocate... right? So I took a look at the lightweight memory summary and it shows that I have 123KB of ram available, but it only uses up 59K. When I look at the addresses, 64K of RAM at 0x20000004 is untouched. Is there any way to be able to utilize the rest of the ram?

 

Thanks,

Dan

0 项奖励
回复
1 回复

289 次查看
PetrL
NXP Employee
NXP Employee

HI,

 

I guess your problem will be related to socket partition setting try increase RTCS_socket_part_max value:

 

    /* runtime RTCS configuration */
    _RTCSPCB_init = 4;
    _RTCSPCB_grow = 2;
    _RTCSPCB_max = 6;
    _RTCS_msgpool_init = 4;
    _RTCS_msgpool_grow = 2;
    _RTCS_msgpool_max  = 8;
    _RTCS_socket_part_init = 4;
    _RTCS_socket_part_grow = 2;
    _RTCS_socket_part_max  = 6; --> increase this value

 

PetrL

0 项奖励
回复