Hello, TI Experts,
Our customer is designing a prototype product based-on TMS570LC4357-EVM(TMDX570LC43HDK).
They sent us a question about HALCoGen example code for TMDX570LC43HDK.
HALCoGen: 04.05.02
SafeTI Diagnostic LibraryVersion: 2.2.0
CCS:Version 6.1.3.00033
sample_code:\Hercules\HALCoGen\v04.05.02\examples\TMS570LC43x\example_SafetyLib.c
They created the CCS project based on the guide written in example_SafetyLib.c of HALCoGen.
This CCS project succeeded (reach to main();)
After that, they modified the file "HL_esm.c" as follows to enable " ESM Error of Group1 Channel 52(CPU Interconnect Subsystem - Global error)"
- set bit20 of IESR4 : rewrite 0U -> 1U as below;
esmREG->IESR4 = .. | (uint32)((uint32)1U << 20U) | ..
- set bit20 of ILSR4 : rewrite 0U -> 1U as below;
esmREG->ILSR4 = .. | (uint32)((uint32)1U << 20U) | ..
After rebuild & load program & execute, This program went into while(1)-loop
after the line of "SL_SelfTest_STC(STC1_RUN, TRUE, &stcSelfTestConfig); "
(line 825 of the file "example_SafetyLib.c")
Is this proper way to enable ESM error by modifying the file "HL_esm.c"?
I would appreciate if you tell us the recommended way to enable ESM Error in example_SafetyLib.c.
Best regards,