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: CLA read GPIO

Part Number: TMS320F28379D

Hello Team,

     One of my customer uses GPIO_ReadPin() to read the pin status in CLA TASK ,but it cannot be read. The pin has been assigned to the CLA.

    Can he read the pin status in the CLA task? how to be acheived  it?

Best regards

  • Hi Green Deng,

    Apologies for the delayed response.

    The GPIO data registers are accessible by CLA. However, the GPIO control registers are not accessible.

    Was there any error generated during the read, or is it just that the value is always read as 0, even though it's value is 1?

    Regards,

    Veena

  • Hi Green Deng,

    Are you using the readPin function from Drivelib or bitfields. Note that the driverlib function is an inline function defined in .h file. hence when called from a .cla file, it gets compiled using the CLA compiler. Whereas the bitfield function is defined in a .c file, which is always compiled with C28x compiler, which cannot be invoked from a CLA code.

    Regards,

    Veena

  • Hi Veena,

    My customer hasn't reply me, If he replies I will update the forum as soon as possible.

    If he doesn't reply within 2 days, I will close this thread.
    Thank you for your attention.

    Best regards