Forum Discussion

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

TSE + MARVELL + INICHE What am I missing???

Hi,

Can any of you see if i have done something stupid below:

I cannot transmit anyhing.

First my setup code:

alt_tse_phy_profile MV88E1116R = {"Marvell 88E1116R", //

MV88E1111_OUI, // OUI

0x24, // Vender Model Number

0, // Model Revision Number

0x11, // Location of Status Register

14, // Location of Speed Status

13, // Location of Duplex Status

10, // Location of Link Status

&marvell_phy_cfg // Function pointer to configure Marvell PHY

};

alt_tse_phy_add_profile(&MV88E1116R);

alt_tse_system_mac sys_mac = {TSE_SYSTEM_MAC(TRIPLE_SPEED_ETHERNET_0)};

alt_tse_system_sgdma sys_sgdma = {TSE_SYSTEM_SGDMA(SGDMA_ETH_TX, SGDMA_ETH_RX)};

alt_tse_system_desc_mem sys_mem = {TSE_SYSTEM_DESC_MEM(RAM_DESCRIPTOR)};

alt_tse_system_shared_fifo sys_sfifo = {TSE_SYSTEM_NO_SHARED_FIFO()};

alt_tse_system_phy sys_phy = {TSE_SYSTEM_PHY(1, NULL)};

alt_tse_system_add_sys(&sys_mac, &sys_sgdma, &sys_mem, &sys_sfifo, &sys_phy );

And console............:

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

prep_tse_mac 0

Created "Inet main" task (Prio: 2)

Your Ethernet MAC address is 01:01:20:00:00:00

prepped 1 interface, initializing...

Created "clock tick" task (Prio: 3)

[tse_mac_init]

INFO : TSE MAC 0 found at address 0x01043000

INFO : PHY Marvell 88E1116R found at PHY address 0x01 of MAC Group[0]

INFO : PHY[0.0] - Explicitly mapped to tse_mac_device[0]

INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...

INFO : PHY[0.0] - Auto-Negotiation PASSED

INFO : PHY[0.0] - Checking link...

INFO : PHY[0.0] - Link established

INFO : PHY[0.0] - Speed = 1000, Duplex = Full

OK, x=0, CMD_CONFIG=0x00000000

MAC post-initialization: CMD_CONFIG=0x0400020b

[tse_sgdma_read_init] RX descriptor chain desc (1 depth) created

mctest init called

IP address of et1 : 192.168.1.234

DHCP timed out, going back to default IP address(es)

Simple Socket Server starting up

[sss_task] Simple Socket Server listening on port 30

Please folks, I really need to OK this hardware.

Apus

12 Replies

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

    hi agdepus:

    The codes you post here,is the function to realize connection between MAC and PHY? I add your code in my project in NIOSII IDE ,but there are many errors,maybe I donnot understand the communication method and structure well,now I have collect many references about TSE,but I really donnot kown how to realize telecommunication between MAC+PHY and PC,in my lab,there is nobody understand ethernet well.

    would you tell me the steps of realizing the aim?

    (my english is not very good,I am very sorry about that)

    I am appreciate that you could reply me!!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi,agdepus:

    the hardware and software i use are“niosii_ethernet_standard_3c25” and“nichestack_tutorial” from altera pages.

    In NiosII IDE software,

    console is below:

    PHY INFO: [phyid] 0x1 2000 5c90

    PHY INFO: Issuing PHY Reset

    PHY INFO: waiting on PHY link...

    PHY INFO: PHY link detected, allowing network to start.

    SSS INFO: Connecting...

    =============== 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 (http://www.altera.com/nichestack)"

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

    InterNiche Portable TCP/IP, v3.1

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

    prep_tse_mac 0

    EEPROM device 24LC0 size is 10

    read[0x000]: control byte 1 was not ACKed

    Signature = 0x0.

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!

    Your NEEK LCD daughtercard is not programmed with a correct MAC Address!

    Please contact Altera support for instructions on how to correct this problem!

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!

    Invalid MAC Address stored at Flash Offset 0x8000

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!

    Unable to find Valid MAC address.

    Please refer to your Board's User Guide for instructions

    on restoring the MAC Address for your board.

    --Or--

    Hard Code MAC address in get_mac_addr() of iniche_init.c

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!

    prepped 1 interface, initializing...

    [tse_mac_init]

    INFO : TSE MAC 0 found at address 0x07002800

    INFO : PHY National DP83848C found at PHY address 0x01 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 : 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 : 0.0.0.0

    Created "Inet main" task (Prio: 2)

    Created "clock tick" task (Prio: 3)

    DHCP timed out, going back to default IP address(es)

    Nios II Simple Socket Server starting up.

    Created "monitor_phy" task (Prio: 9)

    Created "Nios II Simple Socket Server" task (Prio: 10)

    [SSS_task] Nios II Simple Socket Server listening on port 30

    The wrong places are in red

    my quastions is :

    1: how to set correct MAC Address?

    2: how to find Valid MAC address?

    I donnot understand the example very well,can you tell me the efficient steps to learn "ethernet"

    thanks