Results 1 to 4 of 4

Thread: Aria 10 Nios II: Can not activate Single Socket Server example

  1. #1
    Join Date
    Nov 2016
    Posts
    2
    Rep Power
    1

    Post Aria 10 Nios II: Can not activate Single Socket Server example

    Problem to activate Simple Server Socket example on Altera evaluation board

    We have Altera Aria 10 evaluation board DK-DEC-10AX115S-A (the card) .
    Our goal is to activate Ethernet on the board. We took as a basis the Triple Speed Internet Project Template on the Eclipse IDE. We did all preparations as in the HW, as well in the SW, but we cannot succeeded to connect to the card through TCP/IP.
    Details.

    1. HW configuration

    We defined Nios II and IP on the Altera. See cut from system.htm file.
    jtag_uart_0 0x40102CE8 - 0x40102CEF 8 printable
    sysid_qsys_0 0x40102CE0 - 0x40102CE7 8
    timer_0 0x40102CC0 - 0x40102CDF 32 timer
    pio_0 0x40102CA0 - 0x40102CBF 32
    spi_0 0x40102C80 - 0x40102C9F 32
    sgdma_tx 0x40102C40 - 0x40102C7F 64
    sgdma_rx 0x40102C00 - 0x40102C3F 64
    eth_tse_0 0x40102800 - 0x40102BFF 1024
    mm_bridge_0 0x40102400 - 0x401027FF 1024
    mm_bridge_2 0x40102000 - 0x401023FF 1024
    descriptor_memory 0x40100000 - 0x40100FFF 4096 memory
    onchip_memory2_0 0x40080000 - 0x400FFFFE 524287 memory
    mm_bridge_1 0x00000000 - 0x3FFFFFFF 1073741824


    BSP configuration.

    We has changed the BSP configuration as the following:
    enable_dhcp_client is unchecked. We disabled the DHCP package according with "Using the NicheStack TCP/IP Stack - Nios II Edition" document, page 1-9 (13), see the quote below.
    "If a DHCP server is available on your network, turn on enable_dhcp_client. If no
    DHCP server is available, turn off enable_dhcp_client and specify your IP
    addresses, gateway, and network mask in
    <tutorial_files>\nichestack_tutorial\niosII_simple_socket_server.h."

    Also the simple_socket_server.h file has changed as the following (static IP address):
    #define IPADDR0 10//0
    #define IPADDR1 0 //0
    #define IPADDR2 0 //0
    #define IPADDR3 1 //0

    #define GWADDR0 10//0
    #define GWADDR1 10//0
    #define GWADDR2 1 //0
    #define GWADDR3 1 //0

    #define MSKADDR0 255
    #define MSKADDR1 255
    #define MSKADDR2 255
    #define MSKADDR3 0


    2. Successful download HW and SW to the card

    After successful compilation and download HW and SW components the card did restart and printed the following on NiosII console.

    InterNiche Portable TCP/IP, v3.1

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

    Can't read the MAC address from your board. We will assign you
    a MAC address.

    Your Ethernet MAC address is 00:07:ed:ff:ad:4e
    Static IP Address is 10.0.0.1
    prepped 1 interface, initializing...
    [tse_mac_init]
    INFO : TSE MAC 0 found at address 0x40102800
    INFO : PHY Marvell 88E1111 found at PHY address 0x00 of MAC Group[0]
    INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0]
    INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...
    INFO : PHY[0.0] - Auto-Negotiation PASSED
    INFO : PCS[0.0] - Configuring PCS operating mode
    INFO : PCS[0.0] - PCS SGMII mode enabled
    INFO : PHY[0.0] - Checking link...
    INFO : PHY[0.0] - Link established
    INFO : PHY[0.0] - Speed = 100, Duplex = Full
    OK, x=0, CMD_CONFIG=0x00000000

    MAC post-initialization: CMD_CONFIG=0x04000203
    [tse_sgdma_read_init] RX descriptor chain desc (1 depth) created
    mctest init called
    IP address of et1 : 10.0.0.1
    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)


    These messages above indicate that components are successfully started.

    3. Test of Simple Socket Server failed

    As described in the mentioned above "Using the NicheStack TCP/IP Stack - Nios II Edition" document on page 17 (see the quote below), I run the "telnet 10.0.0.1 30" session in my PC's cmd window. But the try failed.

    "After the NicheStack TCP/IP Stack is ready, you can start a telnet session to interact
    with the stack. To start a telnet session, follow these steps:
    1. From your operating system, open a command shell.
    On Windows, you can also use Run on the Start menu.
    2. Type the following command, specifying either the static IP address or the DHCP
    server-provided IP address:
    telnet <IP address> 30

    If the connection to port 30 on the development board is successful, the menu of
    available commands displays in a command window."


    See below a copied text from my PC's CMD window:

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\yakov.e>telnet 10.0.0.1 30
    Connecting To 10.0.0.1...Could not open connection to the host, on port 30: Connect failed

    C:\Users\yakov.e>


    Please help to find the problem

  2. #2
    Join Date
    Apr 2014
    Posts
    20
    Rep Power
    1

    Default Re: Aria 10 Nios II: Can not activate Single Socket Server example

    Hi yakov.e!
    Did you find a solution to this problem? I have the same issue. I cannot even ping the IP address. When I ran the original example, I was able to ping the IP address at least. I added my own IP to the QSYS system, but I have not modified the path from TSE MAC to NIOS.
    Thanks

  3. #3
    Join Date
    Nov 2016
    Posts
    2
    Rep Power
    1

    Default Re: Aria 10 Nios II: Can not activate Single Socket Server example

    Quote Originally Posted by divyaganti View Post
    Hi yakov.e!
    Did you find a solution to this problem? I have the same issue. I cannot even ping the IP address. When I ran the original example, I was able to ping the IP address at least. I added my own IP to the QSYS system, but I have not modified the path from TSE MAC to NIOS.
    Thanks
    Hi divyaganti,
    I found the solution. However, it was about one year ago, and I forgot details of the solution. In general, I remember, that I found (with help our regional service) an example/reference design that worked on our Evaluation board.
    We started from this and continue until now. Please see below the links.

    There is a reference design for board update portal for Arria 10.
    https://www.altera.com/products/boar...0-gx-fpga.html
    Table 3, download Arria 10 GX FPGA Package (Production Edition)

    Regards,
    Yakov

  4. #4
    Join Date
    Apr 2014
    Posts
    20
    Rep Power
    1

    Default Re: Aria 10 Nios II: Can not activate Single Socket Server example

    Thanks Yakov.
    I did as you suggested. I went back to the original example design and made changes in very very tiny incremental steps. I now have a version which has some of my IP, but the original NIOS control and datapath has not changed too much. I can ping and telnet to it.(Yay!). I suppose I messed up settings somewhere in the countless re-generations of both the bitstream and the NIOS. I also suspect that the example design had some files listed which are path dependent (no obvious errors), and so any slight change to the hierarchy, messed things up.




    Quote Originally Posted by yakov.e View Post
    Hi divyaganti,
    I found the solution. However, it was about one year ago, and I forgot details of the solution. In general, I remember, that I found (with help our regional service) an example/reference design that worked on our Evaluation board.
    We started from this and continue until now. Please see below the links.

    There is a reference design for board update portal for Arria 10.
    https://www.altera.com/products/boar...0-gx-fpga.html
    Table 3, download Arria 10 GX FPGA Package (Production Edition)

    Regards,
    Yakov

Similar Threads

  1. Monitoring Tasks on NIOS II simple socket server design.
    By VTTC in forum General Discussion Forum
    Replies: 0
    Last Post: November 12th, 2015, 12:41 PM
  2. Multitasking On Nios-II (Modified Simple Socket Server Example)
    By kaushal in forum General Software Forum
    Replies: 0
    Last Post: December 10th, 2014, 08:37 PM
  3. Talking with Nios Socket Server from a host
    By Alex F in forum General Software Forum
    Replies: 4
    Last Post: May 12th, 2011, 07:51 AM
  4. To run simple socket server program on NIOS II, stratixII Dev kit
    By divyabs44 in forum Development Kit Related
    Replies: 0
    Last Post: November 26th, 2009, 07:58 PM
  5. NIOS LWIP socket server not working after DHCP fai
    By flong in forum General Software Forum
    Replies: 0
    Last Post: February 14th, 2006, 05:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •