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/TMS320F28379D: TZ-errors

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

what is the meaning of this errors:

Description Resource Path Location Type
symbol "_EPwm2TZIntCount" redefined: first defined in symbol "_EPwm2TZIntCount" redefined: first defined in ecap_capture_pwm_cpu01 C/C++ Problem

Description Resource Path Location Type
symbol "_main" redefined: first defined in symbol "_main" redefined: first defined in ecap_capture_pwm_cpu01 C/C++ Problem

  • Nageswara,

    The errors are telling you you have defined the same symbol in more than one file. These both seem to be defined in "ecap_capture_cpu01.c", but you have them defined somewhere else in your project too. Look through the files in the project explorer in CCS and check carefully what you have in the project.

    Regards,

    Richard
  • Thank you
    Richard
    for quick response.
    two errors is same information or only one.
  • Nageswara,

    You are welcome.

    The linker has found two symbols with duplicate definitions.  The label "main" would normally appear only once in a program, but you have it twice.  Also, the symbol "EPwm2TZIntCount", which looks like a variable, is defined twice.

    Regards,

    Richard

  • yes yes ..
    thank you very much
    i got it ..
    and i changed it ...
  • Hello
    from the TZ example Gpio configured
    how can i changed according to my buffer circuit
    in my case GPIO24 to TZ2_1 , GPIO59 to TZ3 ,GPIO124 to TZ1 ,and GPIO125 to TZ2_2

    void InitTzGpio(void)
    {
    //
    // For External Trigger, GPIO12 as the trigger for TripZone

    GpioCtrlRegs.GPAPUD.bit.GPIO12 = 0; // Enable pull-up on GPIO12 (TZ1)

    GpioCtrlRegs.GPAQSEL1.bit.GPIO12 = 3; // Asynch input GPIO12 (TZ1)

    EALLOW;
    InputXbarRegs.INPUT1SELECT = 12;
    EDIS;

    //
    // For monitoring when the TZ Interrupt has been entered
    //
    EALLOW;
    GpioCtrlRegs.GPAPUD.bit.GPIO11 = 1; // Disable pull-up on GPIO0 (EPWM1A)
    GpioCtrlRegs.GPAMUX1.bit.GPIO11 = 0; // Configure GPIO0 as EPWM1A
    GpioCtrlRegs.GPADIR.bit.GPIO11 = 1;
    EDIS;
    void InitEPwmGpio_TZ(void)
    {
    EALLOW;
    GpioCtrlRegs.GPAPUD.bit.GPIO0 = 1; // Disable pull-up on GPIO0 (EPWM1A)
    GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1; // Configure GPIO0 as EPWM1A
    GpioCtrlRegs.GPAPUD.bit.GPIO2 = 1; // Disable pull-up on GPIO2 (EPWM2A)
    GpioCtrlRegs.GPAMUX1.bit.GPIO2 = 1; // Configure GPIO2 as EPWM2A
    EDIS;
    }
    i could change the GpIO 12 or 11
  • Hi Nageswara,

    I've responded to your latest question on the new post you started: e2e.ti.com/.../2356825

    Let's close this thread and continue the discussion there if that's fine with you.

    Regards,
    Elizabeth