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.

TMS320C6745 GPIO module trouble

Other Parts Discussed in Thread: TMS320C6747, OMAP-L137

I am using LED example (spectrum digital board for TMS320C6747) at my custom board.

Code

for(i = 0; i < 53; i++)

{

      EVMC6747_GPIO_setDirection(i, GPIO_OUT);

}

for(i = 0; i < 100; i++)

{

if((i % 2) == 0)

{

       for(j = 0; j < 53; j++)

       {

              EVMC6747_GPIO_setOutput(j, 0x00);

       }

}

else

{

       for(j = 0; j < 53; j++)

       {

              EVMC6747_GPIO_setOutput(j, 0x01);

       }

}

EVMC6747_waitusec(500000);

}

REGISTERS:

0x01E26014              0x00000000/0xFFFFFFFF
0x01E26018              0x00000000/0xFFFFFFFF
0x01E2601C              0x00000000/0xFFFFFFFF
0x01E26020               0xEC37FF00/0xEC370000

---------------

0x01E26014              0x00000000/0x001FFFFF
0x01E26018              0x00000000/0x001FFFFF
0x01E2601C              0x00000000/0x001FFFFF
0x01E26020               0x070007EF/0x070007EE

PSC1[3] register
0x00001E03

There is no gpio toggle :[

What is the problem may be?

  • Not sure if toggling all 53 GPIOS is a good idea. Some GPIOS might be used by peripherals. If you are trying to toggle the LEDS on the OMAP-L137 EVM, you need to pinmux in the GPIOS and configure DIP switch SW5-6. The pinmux part should already be taken care of in the BSL LED init function. I vaguely remember on my board, SW5-6 was not setup for LEDs by default. I had to switch it the other way.

    EDIT: Overlooked that you are using a custom board. Never mind.