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/TMS570LS0232: How to load SafeTILib_TMS570LS04_BE.lib to a new system?

Part Number: TMS570LS0232
Other Parts Discussed in Thread: HALCOGEN, TMS570LS0432

Tool/software: Code Composer Studio

Hello, TI engineers

I have read software safety manual for configuring ASIL D TMS570LS0232 for my project. I know I should use SafeTILib_TMS570LS04_BE.lib for some useful APIs. But How to load SafeTILib_TMS570LS04_BE.lib into my project? Could you offer me a User Guide for teaching me to integrate SafeTILib_TMS570LS04_BE.lib into a project step by step?

Thanks!

Regards!

Xinyu

  • Hello Xinyu,

    The library includes an example project on how to integrate it into a project. However, this example only includes some of the diagnostics. Also, there is an application note located here: www.ti.com/.../spna212.pdf

    In addition, the library has documentation included in the installation within the directory located at this path: C:\ti\Hercules\SafeTI Diagnostic Library\2.3.1\docs (note potential variation if using a different version of the library).

    As I have noted in another post, your project and your system level requirements will drive which diagnostics you need and how frequently to run them.
  • Hello, Mr. Chuck

    I just want to try call a safety function for testing the use of API. But I do not know which files need to be included in the project? And I just could not call these API.

    Thanks!

    Regards!

    Xinyu
  • Hello Xinyu,

    The user guide lists all the APIs. It is located in /safeti..library/2.4.0/docs:

    SafeTIDiagnosticLibrary-User'sGuide-v2.4.0.chm

  • Hello, Wang

    I know how to call API for my project. But After I integrated SafeTILib_TMS570LS04_BE.lib, my project always report errors. I think there are some errors when I integrated my project. So I hope TI could offer me detail steps for integrating SafeTILib_TMS570LS04_BE.lib.

    Thanks!

    Regards!

    Xinyu
  • Hello Xinyu,

    Good point. I didn't try to integrate a project with the safeti library.  But I did this morning, and it works without any problem. The following steps were followed to create the project:

    1. Create a HALCoGen project (for example, TMS570LS0432_SL_Integration) for TMS570LC04x device. Enable all the modules used by your application, etc.

    2. Open CCS7.x, create a CCS project (same name created through HALCoGen, TMS570LS0432_SL_Integration)

    3. Copy the following folders from SafeTI Diagnostic Library to your CCS project

         1. hal

         2. safety_library

         3. demo_app/common

    4. Copy the library file (SafeTILib_TMS570LS04_BE.lib) and cmd file (SL_TMS570LS0432_NoOS_sys_link.cmd) to your CCS project folder

    5. Exclude the safety_library/source folder from build

    6. add _TMS570LS04_ and _VFP_SUPPORT_=0 to the "pre-define Name" of your project property

    7. add the dirs to the #include search path

    8. add the safeti library to your linker path

    8. Compile the project, pass! This is the project I generated!

    3527.TMS570LS0432_SL_Integration.zip