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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Switch to external PHY on LAN91C111

Altera_Forum
Honored Contributor II
1,081 Views

Hi all, 

 

I have a design where I connect a fibreoptic interface via an external PHY to the LAN91C111. 

 

It worked well with the former releases of the NIOSII IDE using LWIP as TCP stack just by changing the driver file "altera_avalon_lan91c111.c". 

(setting the ALTERA_AVALON_LAN91C111_CR_EXT_PHY_MSK mask in the registerbank 1 within the function "reset_device") 

 

I copied this file to the system library directory, changed it and the compiler took this one instead of the original one. 

 

Now I want to switch over to the NIOSII EDS 6.1 which utilizes the Interniche NicheStack. 

 

My question: Which driver file do I have to change? Is the working approach to copy the files to be changed to the system library directory also rigth with NIOSII EDS 6.1? 

 

Thanks in advance... 

 

Marco.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
411 Views

I don't think much has changed with respect to the low-level driver of the 91c111. You can try doing exactly as you did in prior versions and, if it doesn't work (particularly with lwip), file it as a bug with Altera. Also, LWIP support is not (yet) deprecated. It should function as before. 

 

Regards, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
411 Views

 

--- Quote Start ---  

originally posted by slacker@Feb 1 2007, 07:16 AM 

i don't think much has changed with respect to the low-level driver of the 91c111.  you can try doing exactly as you did in prior versions and, if it doesn't work (particularly with lwip), file it as a bug with altera.  also, lwip support is not (yet) deprecated.  it should function as before. 

 

regards, 

 

- slacker 

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

--- quote end ---  

 

--- Quote End ---  

 

 

Hi slacker, 

 

thanks for the reply. 

 

I fiddled arround with the file "\sopc_builder\components\altera_avalon_lan91c111\UCOSII\src\iniche\smsc91x.c" and "...\smsc_phy.c". 

I did it the same way as I changed the drivers in former times. 

(I added for instance some printf commands) 

But nothing really happened. 

 

So I decided to directly change the source in the components directory - after that I cleaned my project and recompiled it. But all of this has no effect. 

 

So did I take the right file? Or from where does the compiler get the sources? 

 

Best regards, Marco.
0 Kudos
Altera_Forum
Honored Contributor II
411 Views

I&#39;d try it with LWIP, first. Getting it to work with iniche might be different. I would track down what function alt_sys_init() in alt_sys_init.c is calling, to initialize the device. It might be the same one you were modifying, previously. 

 

- slacker
0 Kudos
Reply