Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

ethernet

Hello,

I have been working through the light weight IP tutorial. When starting the telnet operation there is no connection to the target board established.

target platform: CycloneII 2c35 development kit NIOSII

IP: PC: 194.95.194.123

Dev-Board: 194.95.194.122 - This IP is being displayed after doing the run as operation

Subnetmask: 255.255.0.0 for both systems

Connection is done via cross over ethernet cable. cable was checked with an other computer.

settings: full featured for cyclone 2c35

Pinging the IP address of the target system (194.95.194.122) leads to a time out.

The orange LED on the ethernet socket of the board flashes a few times.

The LED on the PC's ethernet card also flashes up. The traffic monitor icon for the pc turns light blue for short, the remote monitor icon doesn't come up , when trying to telnet on recommended port 30.

I have already increased the sizes for the buffers a little in the .h and c.-files - no change in the behaviour of the system - still no connection.

What is the reason for this?

Thank's in advance for your help.

andy

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Check to be sure that DHCP is not being used: LWIP_DHCP = 0. I seem to recall that the code doesn't properly fall through to setting a static IP if DHCP fails.

    Best of luck. It does work!

    - slacker
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    @slacker:

    After your recommendation I put

    # define LWIP_DHCP = 0

    in the .c files, where LWIP_DHCP is checked.

    works fine.

    As I am not going to use the DHCP function I 'll try to take that part out.

    andy