Forum Discussion

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

debug for Ethernet driver

I try to use debug mode to debuging LAN91C111 driver, but I can not set break

pointer for the driver. Does any one know how to set break pointer in the

altera_avalon_lan91c111.c?

Thank you!

David

4 Replies

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

    --- Quote Start ---

    originally posted by david_wu@Mar 24 2006, 12:29 AM

    i try to use debug mode to debuging lan91c111 driver, but i can not set break

    pointer for the driver. does any one know how to set break pointer in the

    altera_avalon_lan91c111.c?

    thank you!

    david

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

    --- quote end ---

    --- Quote End ---

    Dear, David!

    The file altera_avalon_lan91c111.c should be using with UCOS-II rtos and LWIP

    (tcp-ip protocol stack).

    If you wish debug this driver you should create app for UCOS-II. See the examples!

    Some standart functions for LAN91C111 are "init", "rx" and etc.

    You can set break points to these functions.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by slava+mar 24 2006, 09:10 am--><div class='quotetop'>quote (slava @ mar 24 2006, 09:10 am)</div>

    --- quote start ---

    <!--quotebegin-david_wu@Mar 24 2006, 12:29 AM

    i try to use debug mode to debuging lan91c111 driver, but i can not set break

    pointer for the driver. does any one know how to set break pointer in the

    altera_avalon_lan91c111.c?

    thank you!

    david

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

    --- quote end ---

    --- Quote End ---

    Dear, David!

    The file altera_avalon_lan91c111.c should be using with UCOS-II rtos and LWIP

    (tcp-ip protocol stack).

    If you wish debug this driver you should create app for UCOS-II. See the examples!

    Some standart functions for LAN91C111 are "init", "rx" and etc.

    You can set break points to these functions.

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

    [/b]

    --- Quote End ---

    I already create application. My question is when I use NIOS-IDE debug mode, how can I open the altera_avalon_lan91c111.c file and set break pointer at this file?

    Thank you.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I already know how to use the IDE to open the file which I want to debugging. I like to share it with you. Select the File->New->Other. A dialog popup, select C File and push Next, push the Advanced button, check the [Link to file in the file system] and use Browser to locate your file which want to debug. Input the same file name to the File name box, select Finish and you can set break pointer in the file!

    Thank you very much!

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

    Can anyone share reference design of simple socket server in which SMSC LAN91c111 is used as the hardware MAC/PHY.

    My main requirement is how to drive this SMSC LAN91c111 using MicroC/OS-II from Nios II EDS.