What is _mem_test actually doing?

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

What is _mem_test actually doing?

Jump to solution
1,062 Views
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 Kudos
Reply
1 Solution
900 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
901 Views
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 Kudos
Reply