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.

TMS320C6748: Trouble Triggering GPIO Output

Part Number: TMS320C6748


Hi There,

We have a custom board we are bringing up. It's based on the C6748LCDK. We're using the PDK in a baremetal way.

I'm working to toggle the GPIO pins, but I'm having trouble: After modifying the board_cfg.h file and configuring the GPIO pins, I cannot drive any GPIO's low:

1. The measured signal is always high

2. GPIO register values in DIR, OUT_DATA, and SET_DATA are correct, but CLR_DATA is not correct.

Per the reference manual, CLR_DATA controls driving the GPIO pins low.
That makes me suspicious that CLR_DATA is not being written to.

Or there might be something way more simple. Anyways, I appreciate the help.

Here is how I've configured the program. (Based on the GPIO_LedBlink program)

1. I have modified the board_cfg.h to represent our board's pins.

2. I have set the gpioPinConfig struct as:

3. I'm using an enum to index into these pins:

3. The unchanged Board_initGPIO function

4. Toggling the GPIO's

Verification of DIR

As output I have:

Pin Toggle High: Working

IN_DATA (Showing the actual signal)

OUT_DATA (As expected)

SET_DATA (As expected)

Pin Toggle Low: Not Working

IN_DATA (showing the actual pin value)

OUT_DATA (As expected)

CLR_DATA (Incorrect; This should be SET)