What is _mem_test actually doing?

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

What is _mem_test actually doing?

跳至解决方案
1,077 次查看
njk909
Contributor II

What is _lwmem_test, _mem_test, _mem_test_all, etc..., actually doing?  Is it testing the RAM for hard/soft errors?  Is it doing something that would actually be comparable to a real RAM test like a GALPAT, walkpat, or march test?  I am using the MCF52259 with MQX.  I have a requirement to implement a RAM test on bootup, and am trying to figure out if this would cover it or if I need something more.

0 项奖励
回复
1 解答
915 次查看
c0170
Senior Contributor III

Hello Nathan Kohler,

Although I was checking mem.c file which is in next release of the MQX (4.0), you can find following functions, which I'll bring up, in kernel folder. There's a function to verify memory which is an address test, named _mem_verify

The function _mem_test_pool is the one you mentioned, bit similar approach is implemented in _lwmem_test function. They check internal memory structures for errors. Check the source code, I believe they are no help for your need and you will have to write your own routines to check memory patterns.

Regards,

MartinK

在原帖中查看解决方案

0 项奖励
回复
1 回复
916 次查看
c0170
Senior Contributor III

Hello Nathan Kohler,

Although I was checking mem.c file which is in next release of the MQX (4.0), you can find following functions, which I'll bring up, in kernel folder. There's a function to verify memory which is an address test, named _mem_verify

The function _mem_test_pool is the one you mentioned, bit similar approach is implemented in _lwmem_test function. They check internal memory structures for errors. Check the source code, I believe they are no help for your need and you will have to write your own routines to check memory patterns.

Regards,

MartinK

0 项奖励
回复