Hello,
I am not able to change the configuration of the ethernet LEDs. I've tried various setup routines that I've found on the forum, but EN0LED0 and EN0LED2 always indicate LINK (lit when the cable is plugged in) and EN0LED1 indicates some type of network communication (blinking).
How can I change the configuration of the ethernet leds?
How to view the contents of register "EPHYLEDCFG" in CCS, to know if this is changed correctly?
I've tried this:
MAP_EMACPHYWrite (EMAC0_BASE 0, EPHY_LEDCFG, EPHY_LEDCFG_LED0_LINK | EPHY_LEDCFG_LED1_TXRX | EPHY_LEDCFG_LED2_100BT);
and that,
ROM_EMACPHYWrite (EMAC0_BASE, 0 / * PHY addr * /, EPHY_CTL,
ROM_EMACPHYRead (EMAC0_BASE, 0 / * PHY addr * /, EPHY_CTL) & ~ EPHY_CTL_BYPLEDSTRCH); // Make sure LED is on stretching
ROM_EMACPHYWrite (EMAC0_BASE, 0 / * PHY addr * /, EPHY_LEDCR,
(ROM_EMACPHYRead (EMAC0_BASE, 0 / * PHY addr * /, EPHY_LEDCR) & ~ EPHY_LEDCR_BLINKRATE_M) |
EPHY_LEDCR_BLINKRATE_20HZ);
ROM_EMACPHYWrite (EMAC0_BASE, 0 / * PHY addr * /, EPHY_LEDCFG,
(ROM_EMACPHYRead (EMAC0_BASE, 0 / * PHY addr * /, EPHY_LEDCFG) & ~ (EPHY_LEDCFG_LED0_M | EPHY_LEDCFG_LED1_M | EPHY_LEDCFG_LED2_M)) |
EPHY_LEDCFG_LED0_LINK |
EPHY_LEDCFG_LED1_TXRX |
EPHY_LEDCFG_LED2_100BT);
before and after calling "lwIPInit" and the behavior of the LEDs does not change.
I have to use the PK4, and PK5 PK6 pins but have tested pins PF0, PF1 and PF4 and the result is the same.