Hello (again),
In case I select in sl_config.h like this
#define FUNCTION_PARAM_CHECK_ENABLED 1u /**< When defined enables the parameter check at function entry */
#define FUNC_ENTRY_COND_CHECK_ENABLED 1u /**< When defined enables the entry codition check at function entry */
#define FUNC_RESULT_LOG_ENABLED 0u /**< When enabled logs the function results to a pre-determined buffer */
Based on code comments (and manual) I have enabled just checking, not any kind of logging...
How ever I have to include sl_log.c file into project otherwise it won't compile. And when I add it (I don't want to add it since I do not want to log anything) I got compiler warnings
sl_log.c
Warning[Be006]: possible conflict for segment/section "LOG_DATA": C:\GIT\PESTO\swm_DIAG\swu_DIAG_SafeTI\sl_log.c 94
variable "_SL_Log_Initialized @ "LOG_DATA"" (declared at line 94 of "C:\GIT\PESTO\swm_DIAG\swu_DIAG_SafeTI\sl_log.c") is an initialized variable
variable "_SL_Log_Error_Buffer @ "LOG_DATA"" (declared at line 262 of "C:\GIT\PESTO\swm_DIAG\swu_DIAG_SafeTI\sl_log.c") is a zero-initialized variable (1 more variable like this)
These function calls should be behind separate flag(s):
SL_Log_Error(FUNC_ID_ST_STC, ERR_TYPE_ENTRY_CON, 2U);
like this one is
#if(FUNC_RESULT_LOG_ENABLED == 1)
SL_Log_Result(FUNC_ID_ST_HET, testType, (SL_SelfTest_Result)retVal , 0u);
#endif
Flags could be like but that definetly should be the integrators decision will there be logging or not that is completely separate stuff from argument/condition checkings...
- FUNCTION_PARAM_LOG_ENABLED
- FUNC_ENTRY_LOG_ENABLED