Forum Discussion

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

Configuring triple speed ethernet MAC with National DP83848 PHY in MII interface

Hi

I am trying to make a design with a triple speed ethernet MAC from Altera work. I am using a National DP83848 PHY and the small 10/100 version of the MAC. I have attached a snapshot of my schematics to this thread

The design compiles and the LED in the RJ45 connector is working when I download the design into my FPGA.

I have tried to use web server template for my software. I have modified the web server by removing buttons etc. so it should work with my design, but when I launch the software then it crashes/hangs. I can see that the program crashes between the call to function

alt_iniche_init();

/* Start the Iniche-specific network tasks and initialize the network

* devices.

*/

and the call to the function

netmain();

/* Wait for the network stack to be ready before proceeding. */

The first time I run the program I am asked to reset the program after I have entered the MAC-address where I have used the MAC address from my development kit. Then I reset the program then it crashes

I guess that the problem is that I have to setup some status registers in the PHY to make it work or something like that, but I can not find any places in the web server where the registers in the PHY are set.

All I have done so far is to

- design hardware in Quartus

- download hardware to FPGA

- modify the webserver by removing function for button etc.

- launch the webserver

My hope is that NIOS IDE handles the HAL for the ethernet and sets up the software layers for the ethernet as I do not know a lot about these things.

What more do I need to do to make the Ethernet work?

How do I test if I send an receive packages?

I am also thinking about how to test the content of the packages. My plan is to attach my board to my Laptop with a crossed cable and use the hyperterminal like I do with my UART. Does hyperterminal work for this purpose or is there an easier/better way?

Thanks

Tom

15 Replies