Does _mem_test work when _mem_extend has been used?

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

Does _mem_test work when _mem_extend has been used?

715 Views
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.

Tags (3)
0 Kudos
2 Replies

355 Views
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 Kudos

355 Views
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 Kudos