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.

RTOS/TM4C129XNCZAD: changing the link status/activity LED

Part Number: TM4C129XNCZAD

Tool/software: TI-RTOS

Hello,

I'm using
- CCS Version: 6.1.0.00104,
- TIRTOS: tirtos_tivac_2_16_01_14,
- xdctools_3_32_01_22_core

and i want to change the link status/activity LED from (PF4 <==> LED1 & PK4 <==> LED0) to my external port using my CPLD which is connected to Port P to extend the I/O of the micro-controller. currently with PF4/PK4 i'm using MAP_GPIOPinConfigure/GPIOPinTypeEthernetLED but how can i configure driver to use my external port on the CPLD for the two LEDs?

Thanks,

Mohammed Fawzy

  • I am not sure I understand your question. The Ethernet LEDs are available as:
    LED 0 (PF0 or PK4)
    LED 1 (PF4 or PK6)
    LED 2 (PG0 or PJ0)

    You did not detail how your CPLD was interfaced to the TM4C1294, nor which LED functions you wish to use. Other than routing some of the LED pins listed above to your CPLD (which defeats the purpose of saving the pins), the only solution that I can think of is that you would have to use interrupts from the EMAC to then send state information to your CPLD.
  • Hi Bob,

    you are correct that i want to rout the status/activity LED that can be controlled by the EMAC directly to be controlled by my CPLD, and on how the CPLD is connected to the controller, we are using port P for Address/data multiplexing beside some of the control signal to handle the multiplexing, read and write operation . i believe that the write operation will take couple of milliseconds.
    so the question how to use the MAC interrupt to invoke the write function that control the CPLD LED.

    Best Regards,
    Mohammed Fawzy
  • Which LED functions do you wish to pass on to your CPLD?
    ■ Link OK (0x0)
    ■ RX/TX Activity (0x1)
    ■ TX Activity (0x2)
    ■ RX Activity (0x3)
    ■ Collision (0x4)
    ■ 100-BASE TX speed (0x5)
    ■ 10-Base TX speed (0x6)
    ■ Full Duplex (0x7)
    ■ Link OK/Blink on TX/RX Activity (0x8)
  • Hi Bob,

    actually i will need the
    ■ Link OK/Blink on TX/RX Activity (0x8)
    ■ 100-BASE TX speed (0x5)

    Best Regards,
    Mohammed Fawzy