Hello All,
The SL_SelfTest_MibSPI loopback self test does not disable the chip selects on the transfer group before performing the test. I found this because the periodic test was corrupting my output expander and causing readback santity check failures.
This means that the loop back mode is active whilst the SPI device is driving on the bus.
This contradicts the Rm46L Reference Manual, which says:
NOTE: Usage Guideline for Input/Output Loopback
Input/Output Loopback mode should be used with caution because, in some configurations, even the receive pins will be driven with transmit data. During testing, it should be ensured that none of the SPI pins are driven by any other device connected to them. Otherwise, if analog loopback is selected in I/O Loopback mode, then testing may damage the device.
The SafeTI Diagnostic Library help only says that there must be no pending transfers and the pinmux must be setup.
The test writes 'random' test pattern data to the connected device and (according to the user's manual) risks permanaent damage.
Regards,
Mark.