Forum Discussion

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

How to set MAC address for tripple speed ethernet?

It's a stupid question...but how should I set triple speed Ethernet MAC address? Can I set the address in SOPCBuilder? Or I have to program NIOSII software to set the address?

6 Replies

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

    --- Quote Start ---

    It's a stupid question...but how should I set triple speed Ethernet MAC address? Can I set the address in SOPCBuilder? Or I have to program NIOSII software to set the address?

    --- Quote End ---

    There is a register set for the mac address in the TSE's config registers on the avMM interface.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi..,my name is dileep kumar..iam new to ethernet interface,,so can u please guide me to how to start r can u just provide any reference design using triple speed ethernet for cyclone iii..thanks in advance

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

    You can just google "NiosII Ethernet Standard Design Example" and will find it.

    Unfortunately, the documentation of tse on cyclone III is not so instructive as compared with reference design of tse on StratixII.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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"

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

    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

    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 somebody tell me the efficient steps to learn "ethernet"

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

    What board are you using?

    The manual should tell you how to put back a valid mac address in the flash.

    Alternatively you can directly provide your own mac address in the get_mac_addr() function (and modify the function so that it doesn't print this warning any more).