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.
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!
-----------------------------------------------------------------------------------------------------------------------
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.