Other Parts Discussed in Thread: HALCOGEN
When I run the HALCoGen (v 4.06.01) example for the Safety Lib (example_SafetyLib.c),
it performs fine with Safety Lib version 2.2.0.
If I run the same example, with identical code, agains Safety Lib version 2.3.1, it hangs in the first DCAN check.
It gets locked in this while() becaus the test fails:
if(SL_SelfTest_CAN(CAN_ECC_TEST_MODE_1BIT, SL_DCAN1) == false)
{
while(1);
}
The location where it fails is:
/* verify DCAN is initialised */
/*SAFETYMCUSW 439 S MR:11.3 <APPROVED> Comment_4*/
if((boolean)sl_canREG)
{
/*SAFETYMCUSW 134 S MR: 12.2 <APPROVED> Comment_5*/
if ((uint32)CAN_INIT_BIT == (sl_canREG->CTL & CAN_INIT_BIT)) {
SL_Log_Error(FUNC_ID_ST_CAN, ERR_TYPE_ENTRY_CON, 3u);
retVal = FALSE;
return retVal;
}
}
It happily succeeds the call in 2.2.0, fails in 2.3.1
CCS 7.1
TMS570LC43 LaunchPad.