Hello, my name is Leonardo and I have some questions about if is possible to change or implement a Ethernet PHY LED configurations inside the EMAC_Init() fuction.
More backgroud details, I develop a board using the TM4C1294KCPDT microcontroller to use in some project in the company where I work. Today I am trying to use / understand the TI-RTOS with network applications. I spend some time reading and analysing the documents about NDK, TI-RTOS and use some TM4C1294XL board examples to get more information.
Fortunaly, I was able to modify the UDP_ECHO and TCP_ECHO examples to run with my configuration (just modify some lines of code to math with TM4C1294KCPDT Microcontroller and my hardware configuration) and using the udpSendReceive.exe and tcpSendReceive.exe files I could see that at list that the Hardware and the Firmware are working.
The point is, when I was changing the example code I need to change the Ethernet PHY LEDs configuration, because my hardware is not the same as TM4C1294XL board. More exactly this piece of the code:
GPIOPinConfigure(GPIO_PK6_EN0LED1);
GPIOPinConfigure(GPIO_PK5_EN0LED2);
GPIOPinTypeEthernetLED(GPIO_PORTK_BASE, GPIO_PIN_5 | GPIO_PIN_6);
Just change the PF0 and PF4 to PK5 and PK6
Running the program I see that the LEDs are configured with the wrong event. Is possible to notice that PK5_LED2 is indicating that Connection OK and PK6_LED1 is indicating RX/TX activity, but I need PK5_LED2 indicate RX/TX activity and PK6_LED1 indicate Connection OK.
I know that is simple to change this configuration in the EPHYLEDCR register, but all MAC/PHY configuration is made inside EMACSnow.c file, I dont find any line that is configuring it and I am afraid to made some change in the PHY register after his inicialization.
So... If is a line of code that made this configurations and I dont find it, where is it ? and what change I need to do ? .... or, if isnt..... is possible to implement a code to made this configuration ? Where ? How ?
Sorry for any miss understanding in my english.
Best regrads,