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.

RTOS/TMS320F28379D: Getting CLA to run with BIOS

Part Number: TMS320F28379D


Tool/software: TI-RTOS

I have a project that runs in a non bios configuration.  The EPWM runs as a time base to operate the ADC and the CLA.  The is used for digital filtering once the ADC is converted.  This program runs fine from flash in a non-BIOS environment with interrupts.  I do have the EPWM and the ADC running in the BIOS but I don't knwo how to get the CLA to run.  I am using the DmaClaSrcSelRegs.CLA1TASKSRCSEL1.bit.TASK1 = 1;  to source its start from the EPWM 6 but it is not running.  I am not sure how to start the CLA with BIOS.  I am using BIOS 6.75.1.05 with XDC 3.51.118 and CCS 8.3.0.9.

  • Hi,

    Please see Section 5.2.4 - CLA Tasks and Interrupt Vectors of the TRM.

    EPWM 6 as a CLA Trigger Source is value 41, not value 1.

    Hope this helps,
    sal
  • I picked the value 1 because i want the filtering in the CLA to run on ADC EOC.  I already have the program working in a non bios environment using interrupts.  The CLA works with interrupts.  I need to understand how to make the CLA run in the context of a BIOS environment.  

    Thanks,

  • Hi Paul,

    I am not very familiar with integrating the CLA with BIOS. I will see if another engineer can offer suggestions.

    My suggestion would be to use a hardware task, or you can use a SW task of the C28 which then triggers the CLA in software.

    Hope this helps,
    sal
  • As far as BIOS is concerned, the CLA is just another peripheral like an ADC or PWM, so there really shouldn't be much of a difference between your BIOS and non-BIOS application where the CLA is concerned. BIOS doesn't run on the CLA, so you can't call BIOS functions in the code it runs. If the CLA is triggering an interrupt on the CPU, you should create a BIOS Hwi for it, but that's really the only special configuration I can think of.

    When you say "it is not running," what does that mean? You aren't getting an interrupt? The task isn't running?

    Whitney
  • The CLA task does not run.  

  • Paul,

    Our examples show how to properly configure the CLA. There is a limited number of possibilities as to why the CLA is not running.

    1) The CLA peripheral clock is not enabled.
    2) The trigger source is not configured and enabled.
    3) The trigger is not occurring in the system.
    3) The CLA tasks vectors are not configured properly.
    4) The CLA memories are not configured properly.

    Please make sure you have done the above correctly.

    sal