Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

MAC-address

Altera_Forum
Honored Contributor II
1,049 Views

Hello, 

 

I am working with a nios development board with a stratixII_2s60. 

When I start ethernet communication the console shows "Can't read MAC address." 

For the development boards with a 1S40 device and earlier development kits the MAC address is stored at 0x7f000 in flash. 

 

Does anyone have an idea what this should be for the nios development board with a stratixII_2s60 ? 

 

Thanks.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
299 Views

How if ThomsonBro == true.... 

 

Hi ThomsonBro, 

 

I never had any problems because it couldn't read the MAC Address.... Like I told you: it appears to be a 32-bit large integer. 

I believe the flash memory is connected 16 bit wide... is it possible to read a 32-bit number in that way?! 

Good luck with your assignment... 

 

Cheers, 

 

Danny
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

All right, thanks Danny http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif . But now I’ve a different problem.  

 

I run the lwip_web_server example form the forum (lwip-v1_1.zip) and I have already done what is written in the readme file.  

 

When I tried to ping, I got a reply. But when I go to the board with the browser http:// ip addr it won’t work.  

 

The IDE shows this error: 

[Conflicting names: /cygdrive/c/altera/kits/nios2_51/components/altera_avalon_lan91c111/HAL/src/altera_avalon_lan91c111.c ]  

warning: use of cast expressions as lvalues is deprecated [/cygdrive/c/altera/kits/nios2_51/components/altera_avalon_lan91c111/HAL/src/altera_avalon_lan91c111.c ]  

lwip_web_server_0_syslib line 894  

 

This error is 22 times displayed and all of them are located in the file altera_avalon_lan91c111.c 

I cannot edit this file.  

 

Does anyone have an idea how to solve these errors? Thanks a lot.
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

TB, 

 

Don&#39;t waste your time trying to fix these warnings. 

 

The fact that pinging your IP address works, means that your stack is functional. You need to set some breaks in the web_server code to determine where things are failing. 

 

Best Regards, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

Hi Slacker, 

 

I have put a breakpoint at the first line where things went wrong. (line 741 of altera_avlon_lan91c111.c)  

 

After building the source I got zero errors and warnings. Nice, cause still without the expected result. It is impossible to reach the ram from the http.  

 

It seems like some important parts of the source are not running now. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif  

 

Cheers.
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

Well, problem is solved now. My proxy settings in internet explorer set wrong and when I changed them I still got the same problem. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

With firefox it will work. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

 

Thanks to all, cheers  

 

 

--- Quote Start ---  

originally posted by thomsonbro@Feb 17 2006, 05:41 AM 

hi slacker, 

 

i have put a breakpoint at the first line where things went wrong. (line 741 of altera_avlon_lan91c111.c)  

 

after building the source i got zero errors and warnings. nice, cause still without the expected result. it is impossible to reach the ram from the http.  

 

it seems like some important parts of the source are not running now. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/wink.gif    

 

cheers. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12766) 

--- quote end ---  

 

--- Quote End ---  

0 Kudos
Reply