Forum Discussion

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

Switch to external PHY on LAN91C111

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.

3 Replies

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

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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