Dear all,
Have a few questions regarding the use of hercules safety library(sl libraries) api.
working on TMS570LS1224PGE Launchpad XL2, and adding safety library(using ver2.3.1) for logging fault.
1) How can the logs of failure after calling SL_Log_Error be stored in txt file or output to comm(uart) port?
In sl_log.h, it is mentioned SL_Log_Result "Applications can later use this buffer (&codes) to debug the result of the function call"
where is the (&codes) example to call this buffer??
2) following the example_SafetyLib.c inside sys_startup.c file
there are many self checks that use while(1) when fault occurs,
eg. /* Run 1Bit ECC test on TCM RAM */
retVal = SL_SelfTest_SRAM(SRAM_ECC_ERROR_FORCING_1BIT, TRUE, &failInfoTCMRAM);
if(retVal == FALSE) while(1);
Is it suppose for users to replace with our fault logging/handling here instead, because 'while(1)' only hang the system and do nothing??
3) there is a void esmCallBackFunction (uint32 grp_channel, uint32 param1, uint32 param2, uint32 param3)function which is empty in sys_startup.c
but there is codes in esm_application_callback.c, which should be the one to use
or should the code in esm_application_callback.c be integrated to the sys_startup.c?
Appreciated if can provide more links or code examples related to how to use the safety library api?
thank you,
benjamin