Forum Discussion

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

Simple Socket Server connection failed

Hi all,

I need an Ethernet link between my dev board and the PC.

I am using:

Simple Socket Server Project Template

Triple-Speed-Ethernet core (system.h attached)

Nios II 9.1 SP2

NicheStack TCP/IP Stack

RTOS MicroC/OS-II

my Board: Transceiver Signal Integrity Development Board (Stratix II GX EP2SG90).

I need to use SMA so I built a custom board with SMA and a SFP for GbEthernet.

I am using FLASH memory for Program memory (.text)(MicroC/OS-II) and for Read-only data (.rodata).

I am able to successfully build the project, program flash and run the project and I am getting this output:

=============== Software License Reminder ================

This software project uses an unlicensed version of the NicheStack TCP/IP

Network Stack - Nios II Edition. If you want to ship resulting object

code in your product, you must purchase a license for this software from

Altera. For information go to: "http://www.altera.com/nichestack"

=====================================================

InterNiche Portable TCP/IP, v3.1

Copyright 1996-2008 by InterNiche Technologies. All rights reserved.

Static IP Address is 192.168.1.234

prepped 1 interface, initializing...

mctest init called

IP address of : 192.168.1.234

Created "Inet main" task (Prio: 2)

Created "clock tick" task (Prio: 3)

Simple Socket Server starting up

[sss_task] Simple Socket Server listening on port 30

Created "simple socket server" task (Prio: 4)

But at this point I can't ping, telnet...

I tried to ping and I got a message "Destination Host Unreachable".

My client (PC) is configured with the correct subnet.

And I guess that my application is stuck in the select() call waiting for someone trying to connect.

I can monitor the TSE status (it looks fine...)

-led_link: asserted (successful link synchronization).

-led_an: asserted (auto-negotiation complete)

-led_char_err: deasserted (not errors)

-led_ disp_err: deasserted(not disparity errors)

Anyone has an idea of how to debug this problem?

Help would be greatly appreciated,

Thanks in advance.

Flor

3 Replies

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

    =) Simple Socket Server is working!

    I have called the Triple Speed Ethernet core "TSE_core" and the TSE was not initializing. I renamed to "tse_mac" and the project is running perfectly.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    So...you're going directly from the FPGAs SerDes into an SFP cage with an RJ45 SFP module and then onto typical GbE network...right? Interesting.

    It's nice to know that's possible.

    Cheers,

    slacker