Post Go back to editing

BF548:  LAN9218 driver

I need to rebuild the LAN9218 driver with the base address changed.   I do not see the LAN9218 driver source code inside the C:\Program Files\Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF548 EZ-KIT Lite

Is the source available somewhere? 

ELse is there a way to change the base address without compiling the driver again??

Thanks in advance

Krishna

  • Hi,

    The source for Blackfin device drivers are at "...\Blackfin\lib\src\drivers\", and the header files are available at "...\Blackfin\include\drivers\". You would need to rebuild the driver to modify the base address.

    Regards,
    Craig.

  • Hi Craig,

    As suggested by you, I have rebuilt the LAN9218 driver. 

    I built a standard application and the Ethernet driver works, as the LAN Get Phy Regs API returns the correct values from PHY regs.  The Link Up and Link Down status comes clearly.

    BUT,

    When I use this newly built driver with the LWIP example applications (all of them)  the execution remains in the while loop waiting for Link Up inside the system_init function.

    When I probed I find that the ethernet PHY CSR remains "busy". 

    What is difference between the standard application and the LWIP, vis-a-vis the ethernet driver usage??  Why different behavior on the same board? 

    -Krishna

  • Just to add -- there is another post a few days back by colleague, LAN SMSC9218 driver fails in LWIP examples on BF548 , where the working code is attached and the problem is also described.

    Any help is appreciated ...

    Thanks

    Krishna

  • Hi,

    What changes have you made to the example applications, or Template applications to account for the changes in the custom driver, and to ensure the correct driver is included in the project (rather than the default)?

    Are you able to provide a complete example project setup - for example using the LwIP template application - and your library so that we can take a closer look?

    Regards,

    Craig.

  • hi craig ,

    i attached all my source code for quick reference,

    please find the attachment .

    thanks and regards ,

    sachin

  • This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

    Thank you,
    EZ Admin