Other Parts Discussed in Thread: HALCOGEN
Hello,
I noticed that after running the SCI loopback test using the SafeTi Diagnostics Library (SDL, version 2.4.0_LDRA_Less) the SCI interface would stop working. I figured out that bit 16 of the SCIGCR1 register (for enabling loopback) was remaining set to 1.
Checking the implementation of SL_SelfTest_SCI, it calls the SL_sciEnableLoopback function, which indeed sets bit 16 of the SCIGCR1 register to 1, but then forgets to reset it to 0 after the self test is finished.
Comparing with the SCI module generated by HalCoGen (v4.07.01), the sciEnableLoopback function does not make use of bit 16 of the SCIGCR1 register.
My question now is, which implementation is correct, i.e. is setting bit 16 of the SCIGCR1 register required to run the loopback tests on the SCI interface? And if yes, why does the SDL implementation not reset the bit once the self test is run?
Thank you for the clarifications.
Regards,
Aaron





