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.

USB0DP (GPIO43) is used as GPIO in TMS320F28377D

Generally, GPIO setting uses these codes:

GPIO_SetupPinMux(62,GPIO_MUX_CPU1,0);

         GPIO_SetupPinOptions(62, GPIO_OUTPUT,0);

GPIO_WritePin(62, 1);

GPIO_WritePin(62, 0);

         These codes can make GPIO62 work correctly. When “GPIO_WritePin(62, 1);” is used, GPIO62 is high level; When “GPIO_WritePin(62, 0);” is used, GPIO62 is low level.

         When I use these codes to USB0DP (GPIO43), it cannot work. USB0DP (GPIO43) always keeps low level.

         Then I use other codes:

GPIO_SetupPinMux(43,GPIO_MUX_CPU1,0);

//  GPIO_SetupPinOptions(43, GPIO_OUTPUT,0);

EALLOW;

   GpioCtrlRegs.GPBAMSEL.bit.GPIO43 = 0;

   GpioCtrlRegs.GPBLOCK.bit.GPIO43 = 1;

   GpioCtrlRegs.GPBCR.bit.GPIO43=0;

   GpioCtrlRegs.GPBODR.bit.GPIO43=1;

   GpioCtrlRegs.GPBCSEL2.bit.GPIO43=0;

   GpioCtrlRegs.GPBGMUX1.bit.GPIO43=0;

   GpioCtrlRegs.GPBMUX1.bit.GPIO43=0;

   GpioCtrlRegs.GPBDIR.bit.GPIO43 = 1;

EDIS;

GPIO_WritePin(62, 1);

         But still has no effect to USB0DP (GPIO43), which keeps 0.

 

         Please tell me if I can use USB0DP (GPIO43) as GPIO and how to set it?

Thank you!

 ZHOU Lidan