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.

TMS320F280049C: DLOG_4CH on CLA

Part Number: TMS320F280049C
Other Parts Discussed in Thread: TMDSCNCD280049C

Hello,

I tried to used the DLOG_4CH library on F280049C (via TMDSCNCD280049C ControlCARD).I used the library from DigitalPower_SDK_2_00_01_00. I succeed to use it on CPU but not on CLA.

Is there some specifics code/action to do?

I checked some parts:

  • my variables are well declared in CLA data that are read/write accessible by CLA & CPU
  • it seems that the status is still to 1

For information:

  • CCS Version: 9.3.0.00012
  • Compiler version: TI v18.12.5.LTS
  • Optimization level: 2- global Optimizations with speed = 5

If you need extra information, don't hesitate to ask me.

Thanks for your help,

Yann

  • Yann,

    I am looking into this.  I will post back before end of Friday US time.

    Regards

    Lori

  • Yann,

    This library was not developed for nor tested on the CLA.  A couple of things you may want to try to get it working:

    1) There are guards in the code to keep it from being pulled into the CLA code:

    #ifndef __TMS320C28XX_CLA__
        //TODO DLOG
    
        #if INCR_BUILD==1
            // check output voltage and inverter current meas.
            dVal1 = acSine;
            dVal2 = acSine-spll1.sine;
            dVal3 = acSine-spll3.sine;
            dVal4 =ac_cur_sensed;
        #elif INCR_BUILD==2
            // check inverter current meas and reference.
            dVal1 = spll1.sine;
            dVal2 = iL2_sensed;;
            dVal3 = dutyPU;
            dVal4 = ac_cur_sensed;
        #else
            // check inverter voltage meas and reference
            dVal1 = acSine;
            dVal2 = ac_cur_sensed;
            dVal3 = ac_cur_ref;
            dVal4 = spll3.ylf[0];
        #endif
        DLOG_4CH_run(&dLog1);
    #endif
    

    2) The issue may be the int16_t in the struct for the DLOG, because we init on C28x and run on CLA. Moving those to 32 may fix the issue.

           float32_t *inputPtr1;
           float32_t *inputPtr2;
           float32_t *inputPtr3;
           float32_t *inputPtr4;
           float32_t *outputPtr1;
           float32_t *outputPtr2;
           float32_t *outputPtr3;
           float32_t *outputPtr4;
           float32_t prevValue;
           float32_t trigValue;
           int16_t status;
           int16_t preScalar;
           int16_t skipCount;
           int16_t size;
           int16_t count;
    

    Best Regards

    Lori

  • Hi Lori,

    Thanks for your answer.

    I already tested by updating int16_t by int32_t without success. I will made my own debug log for CLA.

    Best regards

    Yann