Forum Discussion

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

MAC address on flash (Cyclone II development board)

Hi all,

I'm using Cyclone II development board. According to the manual, the MAC address is stored in the persistent data section on the flash, which starts from 0x00FF0000 to 0x00FFFFFF, but it doesn't say the exact location. Does anybody know the exact location of MAC address on flash for this board?

Thank you

1 Reply

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

    For Cyclone II and earlier boards, it's always +5 bytes offset from the beginning of the last flash sector.

    See the sample C code that is part of both the web_server and simple_socket_server applications, which are shipped with each EDS release. Just look for the get_board_mac_addr() function in network_utilities.c.

    Cheers,

    - uraslacker