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++

debug for Ethernet driver

Altera_Forum
Honored Contributor II
1,127 Views

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
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
439 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
439 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
439 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
439 Views

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.
0 Kudos
Reply