Hi PUNEETH
for testing memory recommended linux memtester
https://linux.die.net/man/8/memtester
If you are writing own test one can try to find where it hangs debugging and using
AN4553 Using Open Source Debugging Tools for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------