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.

RM48L950: SafeTI Diagnostic library integration with CCS

Part Number: RM48L950
Other Parts Discussed in Thread: HALCOGEN,

Hi Ti,

Our project should be complaint to IEC-61508, so we need to perform MCU inbuilt diagnostic periodically. The SafeTI diagnostic library provides the library driver to perform these diagnostics. I have some doubts that are related to SafeTI diag library, Halcogen and CCS.

i. SafeTI diagnostic library API will perform boot-time diagnostics at sys_startup.c file and periodic diagnostic at main.c file. Is my understanding correct?

ii. What is the purpose of configuring the SAFETY INIT tab in halcogen. Is it has any relation with SafeTI diagnostic library? Or it is mandatory to configure in Safety Init, if the SafeTI diagnostic library is used?

iii. Is it required to enable Group1 interrupt for the ESM module when SafeTI diagnostic library is used?

iv. Please provide the steps to integrate the safety diag library into a custom CCS project? 

Regards,

Monish P

  • i. SafeTI diagnostic library API will perform boot-time diagnostics at sys_startup.c file and periodic diagnostic at main.c file. Is my understanding correct?

    Yes, you are correct.

    ii. What is the purpose of configuring the SAFETY INIT tab in halcogen. Is it has any relation with SafeTI diagnostic library? Or it is mandatory to configure in Safety Init, if the SafeTI diagnostic library is used?

    HALCoGen was developed before SafeTI diagnostics library hence there are few overlapping Safety Diagnostics features between them. We continue to support HALCoGen diagnostics ( sys_selftest.c) for legacy reasons. We strongly recommend to use SafeTI Diagnostics library for Safety Functions.

    ii. What is the purpose of configuring the SAFETY INIT tab in halcogen. Is it has any relation with SafeTI diagnostic library? Or it is mandatory to configure in Safety Init, if the SafeTI diagnostic library is used?

    No, those items are used to generate functions in sys_selftest.c and decide whihc function is called during startup.c. Please see my answer for 2nd question.

  • Hi Wang,

    Thanks for the prompt reply. Here are some more doubts.

    iii. Is it required to enable Group1 interrupt for the ESM module when SafeTI diagnostic library is used?

    iv. Please provide the steps to integrate the safety diag library into a custom CCS project? 

  • Hi Monish,

    1. Yes, the interrupt for some ESM Group1 channel are enabled. Please refer to the HAL configuration for RM48L950 in the demo_app folder:

    The ESM config window shows channels which enables the interrupts and nERROR.

    2. I don't have this kind of documentation. The Safety Diagnostic Library contains examples for each device. Please take a look at the example project for RM48 device in demo_app folder:

    The sys_startup.c in this folder call the SDL APIs instead of the functions generated by HALCoGen.