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.

TMS320F28379D: how to toggle gpio using cla?

Part Number: TMS320F28379D


I already checked all c2000 example i didn't find specific one. please give example to blink gpio31 led

  • Hello Shrikant,

    As long as you include the proper header files for driverlib, you should be able to set the GPIO controller to be CLA1 for whichever CPU you're running from. This will allow the CLA to control the GPIO pin (I have tested the below code and it worked fine).

    GPIO_setDirectionMode(31, GPIO_DIR_MODE_OUT);
    GPIO_setControllerCore(31, GPIO_CORE_CPU1_CLA1);

    After you call these two driverlib functions from your main program, you can use "GPIO_togglePin(31);" to toggle the pin from within a CLA task.

    Best regards,

    Omer Amir

  • can you please provide full code ? it will help me.

  • Hello Shrikant,

    I used the only CLA example for the F2837xD device, you should have no issue replicating the project I made (just add the mentioned code in main before the CLA task is called and toggle the GPIO in the appropriate CLA task).

    Best regards,

    Omer Amir