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.

TMS320F28377D: IEC60730SWPACKAGES: C2000-DIAGNOSTIC-SW-PACKAGE: Merging it to existing projects

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Hello,
Let me ask one more from my previous thread: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/636649

Could you please advice a procedure to put your diagnostic library into customer's existing projects?

[A] C:\ti\c2000\C2000Ware_1_00_01_00\libraries\diagnostic\f2837xd\include\  (stl_epwm_reg.h)
[B] C:\ti\c2000\C2000Ware_1_00_01_00\device_support\f2837xd\headers\include\  (F2837xD_epwm.h)

The diagnostic library has its own header files [A]. On the other hands my customer has used C2000Ware version [B].

They conflict each other. My customer is trying to resolve the confliction. At the same time we would like TI to revise the library to use [B] to have future updates.

  • Hi Hideaki,

    I understand now what your issue is.

    YOu only need to use one of these header files.

    If you are using stl_osc_hr then I suggest you use stl_wpem_reg.h. If not, then you can use F2837xD_epwm.h.

    Both of these header files define the same EPWM register structures.

    sal
  • Sal,
    Thank you very much for your reply.

    Q. If I try your way, only my idea is to make a local copy of the [B], and replace required (*.h) files from [A] folder. Do you agree? Or do you have a better way? Is it possible to use [B] with no modification for an easy updates in the future? I'm sorry if this is a beginner's question.

    Q. Could you please plan to purge [A] and switch to [B] some time? Honestly we wish that way.
  • Hi Hideaki,

    If you are using bitfields in your application like you are, then here are the steps to get the Safety Diagnostic LIbrary (stl_osc_hr) to work with your application using bitdields.

    • Add:
    ○ #include "F2837xD_device.h" to sel_osc_hr.h
    ○ #include "F2837xD_epwm.h" to sel_osc_hr.h
    ○ Include path to /headers/include to library CCS project
    • Remove:
    ○ #include "stl_epwm_reg.h" from stl_osc_hr.h
    ○ #pragma DATA_SECTION in stl_osc_hr.c
    • Move "extern volatile struct EPWM_REGS *ePWM[PWM_CH];" to stl_osc_hr.h


    Let me know if this works.

    We will log this for a future enhancement of the library.

    Regards,
    sal
  • Hideaki,

    We plan on fixing this integration issue in the next release. Please look for an updated version of the librayr in 1-3 weeks. If you clicked on the ALERT ME button on the download page, then you should get an email when it is up on the web.

    sal
  • Sal,
    Thank you for your reply.