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.

AM6548: EMAC test problem

Part Number: AM6548
Other Parts Discussed in Thread: TMDX654IDKEVM

Hello All,

I have a problem with running Emac_Icssg_TestApp test applications from TI-RTOS SDK 6.01.

My configuration is:

CCS ver 8.3.0
Windows version - Windows 10 Pro version 1803
PDK - pdk_am65xx_1_0_6
AM65x (IDK) - TMDX654IDKEVM


I built EMAC test example Emac_Icssg_TestApp (in PDK 1.0.6) according to instructions in Processor SDK RTOS 06_01_00 - 6.22.7. Building EMAC Test applications via makefiles
 

and run it via CCS on AM65x (IDK) - TMDX654IDKEVM.
Debug configuration was created with modified launch.js as in   in PDK106.

I tried Emac_Icssg_TestApp on A53 core and I got the following output on UART:

Board_init success for UT
PHYs for ICSSG1 are ALIVE, interposer card is NOT present
Interposer card is NOT present
EMAC loopback test application initialization
EMAC_UT_1 begin, test emac open
main: emac_open sucess for port 0
main: emac_open sucess for port 1
main: emac_open sucess for port 2
main: emac_open sucess for port 3
main: emac_open sucess for port 4
main: emac_open sucess for port 5
EMAC_UT_1 end, test emac open passed
polling rx packets on port: 0
polling all pkts on port: 0
polling rx packets on port: 1
polling all pkts on port: 1
polling rx packets on port: 2
polling all pkts on port: 2
polling rx packets on port: 3
polling all pkts on port: 3
polling rx packets on port: 4
polling all pkts on port: 4
polling rx packets on port: 5
polling all pkts on port: 5
Link for port 0 is DOWN
Link for port 0 is DOWN
Link for port 0 is DOWN
Link for port 0 is DOWN
Link for port 0 is DOWN
...

Link on port 0 is never established

What I noticed is that when debug is launched LEDs on ETH0/1 port that indicate Link-up are turned off approximately in the moment when /am65xx/sciclient_ccs_init_mcu1_0_release.xer5f is loaded and executed.
This does not happen on PDK104.

I then modified Emac_Icssg_TestApp so that it uses only ETH2/3 port (#define EMAC_PORT_ICSS 2U in test_loc.h and uint32_t endPort = EMAC_PORT_ICSS+1; in main_am65xx.h).
With this modification application runs ok and completes the tests.

When I build the same example in PDK 1.0.4 and run it on the same AM65x (IDK) - TMDX654IDKEVM board it works fine.

I also checked Link status in debug mode and it seems that 1000Mbps FD is established via checking result in emac_icssg_update_link_params() in emac_drv_v5.c.
So I suppose that it is not an PRSDK-5544 issue with 100Mbps connection.

Did anyone had this problem and is there a possible solution?

Best regards,
Milan