Tool/software: Code Composer Studio
In TMS570LC4357 - SafeTI Diagnosis Library, there are a little SL_SelfTest.
The test items are like these.
/* Boot time MIBSPI Analog Loopback Test */
SL_SelfTest_MibSPI(MIBSPI_ANALOG_LOOPBACK_TEST,SL_MIBSPI2);
SL_SelfTest_MibSPI(MIBSPI_ANALOG_LOOPBACK_TEST,SL_MIBSPI4);
SL_SelfTest_MibSPI(MIBSPI_ANALOG_LOOPBACK_TEST,SL_MIBSPI3);
SL_SelfTest_MibSPI(MIBSPI_ANALOG_LOOPBACK_TEST,SL_MIBSPI1);
SL_SelfTest_MibSPI(MIBSPI_ANALOG_LOOPBACK_TEST,SL_MIBSPI5);
//Boot time Software test of VIM functionality
SL_SelfTest_VIM(VIM_SOFTWARE_TEST);
//Boot time Software test of DMA functionality
SL_SelfTest_DMA(DMA_SOFTWARE_TEST);
I have some questions.
1. These functions are acted as return fail(false) or pass(true). But, there are no return value. I want to know how i can confirm the test is passed.
2. The test items are MIBSPI, VIM, DMA. The other items are not required in boot sequence?
3. In the main loop, the SL_SelfTest is executed. Can I confirm the test is acted as well by the periodicSTPassCount? (If the total test number is 118, the test result is periodicSTPassCount is 118 and periodicSTFailCount is 0)