AnsweredAssumed Answered

Lwip inetd example not working

Question asked by roneng on Oct 31, 2016
Latest reply on Nov 4, 2016 by mkokaly

The Lwip inetd example (for the ARM Cortex A5 on ADSP sc589) doesn't work on my ADSP sc589 EZboard. I tried both DHCP and static IP options.

Console o/p when using DHCP (ezboard connected to a router): 

Clock Configuration
CCLK = 375000000, SCLK = 187500000, SCLK0 = 93750000, SCLK1 = 93750000, DCLK = 375000000, OCLK = 125000000, EMAC0_CLK = 125000000
Configuring switches for the ethernet operation
User need to set the MAC address in system.svc as MAC address is not stored on board
Incorrect MAC address in system.svc Using temporary MAC: 0x00123456789A
Waiting for the link to be established
Link established

 

At this point the program is hanging forever. No IP is assigned.

 

Console o/p when using static IP (enabled only the echo server task on port 7): 

Clock Configuration
CCLK = 375000000, SCLK = 187500000, SCLK0 = 93750000, SCLK1 = 93750000, DCLK = 375000000, OCLK = 125000000, EMAC0_CLK = 125000000
Configuring switches for the ethernet operation
User need to set the MAC address in system.svc as MAC address is not stored on board
Incorrect MAC address in system.svc Using temporary MAC: 0x00123456789A
Waiting for the link to be established
Link established
IP ADDRESS: 192.168.2.2
Echo Server running (port 7)

 

The IP address appears in the console but ping to this IP fails and the host app is not able to connect to the board on the TCP server port.

When debugging the server task, I see that the call to accept() never returns. the server does not respond to external connections.

 

HW:

SC589 EZlite board. ADSP SC589 version 1.0

 

SW:

CCES version 2.2.0.0

Lwip version 2.2.0

uCOS-III version 2.1.0

 

 

I need a simple TCP server example ASAP. Can you please help me to solve this?

 

Thanks,

 

Ronen

Outcomes