This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS570LS1224: Safety diagnostic library " FUNCTION_PROFILING_ENABLED"

Expert 1660 points
Part Number: TMS570LS1224
Other Parts Discussed in Thread: TMS570LS1227

Tool/software: Code Composer Studio

Dear all

i ran the demo project   SL_TMS570LS1227_NoOS  and found the periodicSTPassCount =108         (  Q1)    108 is it the number of APIS that did the self test ??  )

and  periodicSTFailCount = zero.

Q2) i think that FUNCTION_PROFILING_ENABLED  defined and enabled in the main code of the demo project. my question is how to find the .txt file

i searched for it in the project folder but it's not available

Q3)also i need to know how to check the return value to check for pass or fail result from the diagnsostic self tests. 

below are the variables results 

Q4)what do these values mean??

Q5) i wanna test each peripheral like VIM,SPI,SCI2,ADC GIO,CRC ... how to test them separately and check their results (retVal)  Do i need to  disabling all other tests in app_main_NoOS.c ?

Q6)what is the difference between safety and built in test and self test??

Q7) After 10 iterations the execution can be paused and the variables periodicSTPassCount, periodicSTFailCount can be checked to see the number of tests passing and the number of tests which are failing.

(this mean that the safety library stops execution and it's just run and check the the begining of the project??)

  • Hello,

    FUNCTION_PROFILING_ENABLED can be enabled in sl_config.h

    #define FUNCTION_PROFILING_ENABLED             1u /**< When defined enables the profiling of the functions */

    The files created should be in Debug directory.

  • hello Miro i enabled FUNCTION_PROFILING_ENABLED  in sl_config.h 

    but these errors appear