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.

TMS570LC4357: How to build an Halcogen project?

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

Team,
Can you please help with the below?

Description of the problem:
How to setup TMS570LC4357ZWT in HalCoGen and build the project for the IAR tool workflow, instead of TI CCS IDE workflow?

I have installed the following tools on my development device: 
HalCoGen v.04.07.01
TI Safety Library v.2.4.0
IAR EW for Arm v.8.50.9
My workflow involves creating a project for the TMS570LC4357ZWT in HalCoGen and building it for the IAR tool workflow.
I then transfer the generated code to my IAR project and can use IAR to compile, programme and debug my microcontroller code.

I would now like to use the SafeTI Library.
According to the guide, to do this, I first need to tick the ‘Enable Safety Init’ checkbox in the SAFETY INIT tab in HalCoGen.
However, this tab does not exist in my HalCoGen project.
A comparison project for the RM48L has the tab, but my project for the TMS570LC4357ZWT does not.

Also I have looked at the SDL (SafeTI Diagnostic Library\2.4.0\demo_app\common\source\ app_main_NoOS.c) example and it seems that it supports both TMS570LSx and RM46x, RM44x, RM48x but TMNS570LC4x is not listed:
      #if defined(_TMS570LS31x_) || defined(_TMS570LS12x_) || defined(_TMS570LS09x_) || defined(_TMS570LS07x_) || defined(_RM48x_) || defined(_RM46x_) || defined(_RM44x_) || defined(_RM42x_) || defined(_TMS570LS04x_)

Thanks in advance Anber

  • Hi Anber,

    I would now like to use the SafeTI Library.
    According to the guide, to do this, I first need to tick the ‘Enable Safety Init’ checkbox in the SAFETY INIT tab in HalCoGen.
    However, this tab does not exist in my HalCoGen project.
    A comparison project for the RM48L has the tab, but my project for the TMS570LC4357ZWT does not.

    The SAFETY INIT tab in HalCoGen is only available for specific device families. The TMS570LC43xx (Cortex-R5F based, "LC" series) is a different silicon family from the TMS570LSxx and RMxx devices. HalCoGen's Safety Init feature was historically implemented for the LS/RM families first, and support for the LC4x series may be absent or incomplete in your version (v04.07.01).

    Also I have looked at the SDL (SafeTI Diagnostic Library\2.4.0\demo_app\common\source\ app_main_NoOS.c) example and it seems that it supports both TMS570LSx and RM46x, RM44x, RM48x but TMNS570LC4x is not listed:
          #if defined(_TMS570LS31x_) || defined(_TMS570LS12x_) || defined(_TMS570LS09x_) || defined(_TMS570LS07x_) || defined(_RM48x_) || defined(_RM46x_) || defined(_RM44x_) || defined(_RM42x_) || defined(_TMS570LS04x_)

    SafeTI diagnostic library does support the TMS570LC4357 device, many customers already using it on TMS570LC4357.

    please refer below threads once:

    (+) TMS570LC4357: Do you have SafeTI Diagnostic Library for TMS570LC4357 - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    (+) TMS570LC4357: Note on running SL_SelfTest_SRAM from safety diagnostic library - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,

    thank you for your response.

    How do I have to understand your answer?

    SafeTI diagnostic library does support the TMS570LC4357 device, many customers already using it on TMS570LC4357.

    The SafeTI diagnostic library does NOT support the TMS570LC437 device.

    • But it can still be used for the device eventhough it does not support the device?
    • Or is a custom solution needed to use the safety features on the TMS570LC4357?
    • Or does the TMS570LC4357 not come with the safety features? 

    From the linked forum, I concluded that other users had used the safeTI diagnotic library on the TMS570LC4357 in the past. But how is this possible when the safeTI diagnostic library does not support the TMS570LC4357 device?

    Best regards and thank you for your support,

    Dorian

  • Hi Dorian,

    The SafeTI diagnostic library does NOT support the TMS570LC437 device.

    • But it can still be used for the device eventhough it does not support the device?
    • Or is a custom solution needed to use the safety features on the TMS570LC4357?
    • Or does the TMS570LC4357 not come with the safety features? 

    I am saying it does support. You can download and can directly use it.

    As shown above after downloading SafeTIdiagnostic Library if you give the path of it in import projects of CCS, you can directly import the reference project TMS570LC4357.

    As shown above this demo project was built on top of the Safety library, so you can use it as a reference, and you can also add this library into your project and then you can call the necessary safety APIs into your project based on your project requirements.

    --
    Thanks & regards,
    Jagadish.

  • Hi Jagadish,
    Thanks for confirming.
    Just to be sure:
    For TMS570LC4357 do you need both SDL and SDL CSP?
    https://www.ti.com/tool/SAFETI_DIAG_LIB 

    What is the difference between the two?
    Is the SDL device agnostic (or almost) and is the CSP the device specific portion?
    Thanks,

    Anber

  • Hi Anber,

    SDL:

    Diagnostic Library is a collection of functions for access to Safety Functions and response handlers for various safety mechanisms.

    For more details, please download package and refer user guide corresponding to it.

    SDL_CSP:

    Refer below one to understand the purpose of CSP package.

    (+) TMS570LC4357: TMS570LC4357: certification - Arm-based microcontrollers forum - Arm-based microcontrollers - TI E2E support forums

    --
    Thanks & regards,
    Jagadish.

  • Thank you very much for your clarification.

    I understand now that eventhough HalCoGen does not support the simple integration of the SafeTI Library, the TMS570LC4357 is fully compatible with the safeTI Library.

    The example project for the CCS can teach me, how to integrate and run the library manually.
    However, there is no example, how to do this using the IAR Workbench Tool.
    So I will have to figure this out myself. But i assume, it should work very similar to the CCS example.

    I will try my best and might reach back to this forum for further questions.

    Best regards,

    Dorian