Does _mem_test work when _mem_extend has been used?

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

Does _mem_test work when _mem_extend has been used?

1,297 次查看
theJoel
Contributor III

MQX4.1.1

ColdFire V2

CW10.6

Does _mem_test() work when _mem_extend() has been used?

The loops seem to be using an address comparison " < POOL_END_PTR " ... so it could be inconsistent if you extended your pool with a lower of higher memory region.

Has anyone modified _mem_test() to work with _mem_extend()?

Cheers,

+Joel.

标记 (3)
0 项奖励
回复
2 回复数

937 次查看
soledad
NXP Employee
NXP Employee

Hello Joel,

_mem_test is for the default memory pool.

You can use _mem_test_all this function tests the memory in all memory pools.


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

937 次查看
theJoel
Contributor III

Hi Sol,

I understand _mem_test is for the default memory pool.

My problem is actually: the default pool can be extended to non-contiguous regions with _mem_extend(). I don't see how _mem_test is traversing those regions.

I was hoping someone had already encountered this.. but it looks like I might just have to get my hands dirty.

Thanks,

+Joel.

0 项奖励
回复