Hi, I am new to NDK and trying to run NDK on C6678 simulator. I am using CCS5.0.3.00028 and mcsdk 2_00_01_12. After all the configuration required to run NDK on simulator , i am able to run the client program and debug console shows me the following prints
[TMS320C66x_0] QMSS successfully initialized
[TMS320C66x_0] CPPI successfully initialized
[TMS320C66x_0] PA successfully initialized
[TMS320C66x_0]
[TMS320C66x_0] TCP/IP Stack Example Client
[TMS320C66x_0] PASS successfully initialized
[TMS320C66x_0] Ethernet subsystem successfully initialized
[TMS320C66x_0] Ethernet eventId : 48 and vectId (Interrupt) : 7
[TMS320C66x_0] Registration of the EMAC Successful, waiting for link up ..
[TMS320C66x_0] Network Added: If-1:192.168.5.100
[TMS320C66x_0] Service Status: Telnet : Enabled : : 000
[TMS320C66x_0] Service Status: HTTP : Enabled : : 000
Then, i changes my PC network adapter ip address to 192.168.5.101 and network mask to 255.255.254.0. Now , i try to ping 192.168.5.100 but failed to do so.I have also done configuration mentioned on somewhat related thread but still not get any success.
MSDK reference: http://processors.wiki.ti.com/index.php/BIOS_MCSDK_2.0_User_Guide#Building_and_running_NDK_client_example_with_simulator
Thread on E2E community: http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/113723.aspx
1. Application code/configuration changes.
1a. Change C:\Program Files\Texas Instruments\mcsdk_2_00_00_11\examples\ndk\client\evmc6678l\client.cfg as below.
var PlatformLib = xdc.loadPackage('ti.platform.evmc6678l');
change to
var PlatformLib = xdc.loadPackage('ti.platform.simc6678');
1b. change C:\Program Files\Texas Instruments\mcsdk_2_00_00_11\examples\ndk\client\client.c as below. This would select always static ip address for the Client application since the simulator does not support the DHCP mode.
Around LIne #301,
if (!platform_get_switch_state(1)) { ===> change this to if (1) {
CI_IPNET NA;
CI_ROUTE RT;
....
....
....
if( IPTmp )
CfgAddEntry( hCfg, CFGTAG_SYSINFO, CFGITEM_DHCP_DOMAINNAMESERVER,
0, sizeof(IPTmp), (UINT8 *)&IPTmp, 0 );
}
else {
2. Platform Library for Simulator Changes
Around line #120 of C:\Program Files\Texas Instruments\pdk_C6678_1_0_0_11\packages\ti\platform\simc6678\platform_lib\src\evmc6678_phy.c
change