Other Parts Discussed in Thread: TCI6638K2K
Hi Expert,
I got an EVMK2H12 board with Rev 3.0 . The linux runs well and network is fine. However when I switch to baremetal mode with swich "off off off on" and try to run an NDK example (client_evmk2h), I can't ping it nor can I send udp packet to it (no echo back).
here're all I got:
- mcsdk_bios_3_01_03_06
- pdk_keystone2_3_01_03_06
- ndk_2_24_01_18
- only changes to the code:
char *HostName = "tidsp";
char *LocalIPAddr = "10.204.6.49";
char *LocalIPMask = "255.0.0.0"; // Not used when using DHCP
char *GatewayIP = "10.204.6.1"; // Not used when using DHCP
char *DomainName = "demo.net"; // Not used when using DHCP
char *DNSServer = "0.0.0.0"; // Used when set to anything but zero
// If the IP address is specified, manually configure IP and Gateway
#if defined(_SCBP6618X_) || defined(_EVMTCI6614_) || defined(DEVICE_K2H) || defined(DEVICE_K2K) || defined(DEVICE_K2E) || defined(DEVICE_K2L)
/* SCBP6618x, EVMTCI6614, EVMK2H, EVMK2K always uses DHCP */
if (1) // to make it with static ip
#else
...
- console output , seems pretty good:
[C66xx_0] QMSS successfully initialized
CPPI successfully initialized
PA successfully initialized
TCP/IP Stack Example Client
PASS successfully initialized
Ethernet subsystem successfully initialized
Ethernet eventId : 48 and vectId (Interrupt) : 7
Registration of the EMAC Successful, waiting for link up ..
Network Added: If-1:10.204.6.49
Service Status: Telnet : Enabled : : 000
Service Status: HTTP : Enabled : : 000
I don't think there's anything wrong with my ip configuration because my hostip is exactly in that network segment. Besides I got a evm6678 board too which works well with that ip configuration .
A demo project with a demo board should not be that hard , right ? Am I doing anything wrong ?
Thanks,
Striker




