Hello,
I am trying to integrate NDK for TCP/IP ethernet capability to my legacy software running on DM648. I use the following environment: CCS3.3,BIOS 5.31.08,CGT 6.0.16. I found NDK ver.1.94.1 as a right candidate to integrate as it can work with these versions of CCS,BIOS and CGT.
I was trying to evaluate this version of NDK by running the helloworld project in C:\CCStudio_v3.3\ndk_1_94_1\packages\ti\ndk\example\network\helloWorld. I use the NSP from DM648_BIOSPSP_RELEASE_1_10_01 as suggested in the page http://processors.wiki.ti.com/index.php/Network_Developers_Kit_Licensing_and_Availability
My custom board has two Marvel PHY chips each connected to each of the physical ports of the DM648 EMAC. When i run the helloworld example, i get the following prints. I have modified the helloworld project to work on a static ip of 192.168.0.9
TCP/IP Stack 'Hello World!' Application
Using MAC Address: 34-b1-f7-2f-ec-63
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
cpsw_MDIO_Init
SetPhyMode:000021E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128, FD1000:8192 LPBK:0
cpsw_MDIO_FindingState: PhyNum: 0
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_PhYReset(0)
Enable Phy to negotiate external connection
NWAY Advertising: FullDuplex-1000 FullDuplex-100 HalfDuplex-100 FullDuplex-10 HalfDuplex-10
Network Added: If-1:192.168.0.9
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
Phy: 0, NegMode 01E1, NWAYadvertise 01E1, NWAYREadvertise 4DE1
Negotiated connection: FullDuplex 100 Mbs
Link Status: 100Mb/s Full Duplex on PHY 0
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
cpsw_MDIO_FindingState: Timed Out looking for a Phy!
As you can see above, the PHY0 is detected but PHY1 is not detected and it tells that "Timed Out looking for a Phy!" PHY1. Both PHY chips are the same make and i wonder why the second one is not detected by NDK1.94.1. I even tried changing the interface id to 2 for the below line of code in StackTest(), but still got the same prints..
// Add the address to interface 2
CfgAddEntry( hCfg, CFGTAG_IPNET, 2, 0,sizeof(CI_IPNET), (UINT8 *)&NA, 0 );
Is only Interface 1 supported in NDK?
I intend to use both the ethernet ports of DM648 to be configured with different IPs and connect to different networks. Is this supported by NDK?
SP