MX Foundation 4 comes with many self-test functions designed to test system components and all the device I/O and databus ports.
Embedded selftest utility also can be used to perform a quick self-test.
selfTests.c