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: GPIO Toggling using both CPU1 and CLA1

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi,

I am trying to toggle 2 GPIOs(one from CLA1 and another from CPU1). I have updated the core selection registers for both gpio. What i am getting is that if i declare the GPIO(CLA1) first and the GPIO(CPU1) second in my code. Only the GPIO(CLA1) toggles and the GPIO(CPU1) doesn't work. Same happens other way around. GPIO(CPU1) works if its declare first and GPIO(CLA1) doesn't work. I am toggling the GPIOs using GPXSET and GPXCLEAR Registers. I have added the GPIO declaration snapshots. Please help

  • Hasan,

    Can you check the value in registers bit in CCS register view after configuration to make sure values are correct (as per the configuration) ?

    Regards,
    Vivek Singh
  • Hi Vivek,

    Thanks for your response. I replaced the GPIO_SetupPinMux function with the GPXCSEL Register to update the core selection registers for both GPIOs. It works fine. While using this above function, i checked the GPXCSEL register. It was as it should have been (GPACSEL.GPIO6 was 1 for CPU1.CLA1 and GPCCSEL.GPIO95 was 0 for CPU1). I still can't figure out why it wasn't working with this function. Maybe i was writing on some other registers on which i shouldn't have written.