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/TMDXRM46HDK: Integration of HALCoGen with Hercules SafeTI Diagnostics Library

Part Number: TMDXRM46HDK
Other Parts Discussed in Thread: HALCOGEN, RM46L852

Tool/software: Code Composer Studio

Hi,

The wiki: Integration of HALCoGen with Hercules SafeTI Diagnostics Library

Contains the note: !!!!! WORK In Progress - This WIKI page is NOT Complete !!!!!

I wonder when it is expected to be complete? I am having difficulties integrating the SafeTI Diagnostics Library into CCS (version 7.1) into a project already based on HALCoGen generated code.

It seems a lot of information is missing to make this integration smooth, and I do not want to experiment to much as it is very important to get this things right.

Best Regards /Michael

  • Hi Michael,

    HALCoGen has a safety library example. This example describes the steps to create an sample startup which configures runs safety diagnostic tests using SafeTI Diagnostic Library.

    Open HALCoGen -- Help -- Help Topics -- Contents (left panel) -- Examples -- example_SafetyLib.c

    Click example_SafetyLib.c, the right panel will show the steps.

    Regards,
    QJ
  • Hello Michael,

    In addition to QJs guidance, please also note the application note: Enabling Functional Safety Using SafeTI Diagnostic Library

    In addition, the SafeTI Diagnostic Library has an example also included in it's installation. If the default path was used to install the library, it would be located at this path: C:\ti\Hercules\SafeTI Diagnostic Library\2.3.1\demo_app\HALCoGen\RM46L852_NoOS

  • Hi QJ,

    Thank you, it helped to some extent. But the ride is still not as smooth as I would like.

    Step 1 does not mention that SAFETY INIT in HALCoGen should be deselected (which I assume it should)?

    Step 2 is actually a sequence of several steps:

    With "Add all the files in the folder ..." I guess you mean that the files should be added to the file structure for the Project, or do you mean they should be added to the CCS Environment by an external link? And I guess you mean "all files except xxxIAR, xxxKEIL" depending on IDE?

    Since the file sl_config.h should be edited, I guess also the safety_library/include files should be added to the file structure of the Project, since editing a file in the installation folder of SL would not work for more than one Project.

    Step 3, I believe the path to the predefined symbols is not correct in CCS 7.1.

    Step 4, I cannot find the linker command file, where is it? Also an explanation of why this step is needed would be nice.

    Step 5 is missing.

    Step 6, replacing the sys_startup.c means it will get over-written every time you re-generate code from HALCoGen, right?  

    It would be nice if you could add a feature in HALCoGen that generates a default Project with SafeTI Diagnostics Library integrated as in the example.

    Best Regards /Michael

  • Hi Chuck,

    Thank you. I have read the application note but what I am missing is a more hands-on description of how to get it integrated and working. I have read TI documents and looked at some of your videos, but they are at a higher level. I also get the feeling some of the material is out-dated today, with examples made for older versions of CCS.

    Please also see my comments in the reply to QJ.

    Best Regards /Michael