Altera_Forum
Honored Contributor
9 years agoUnable to acitvate 88e1111 on DEII-115
Hello,
I am unable to actvate the 88e1111 on my DE2-115. (Nios is running, config with cpu, on chip mem, 2xscattergather DMA, and 1 TSE, as in the docmentation of various tutorials, RGMII is set via jumper and selected in QSYS) I narrowed down my problem to a very simple program (based on the examples and the Altera Triple-Speed ethernet docs). First observation is that even the link LED on my switch does not come up. (cable and switch were tested with a PC). The speed leds on the DE2-115 indication the PHY baud rate and other leds near the chip stay dark. The data sheet of the 88e1111 cannot be found, this not helping. questions: 1) What are the minimum requirements to get the link up ? Is this done by the PHY by itself (i assume) ? Does it suffice to initialize the MAC adresses, the MDIO space 0, and the right value in register 16 of the PHY. 2) I can read and write the scratch register and read the TSE version. But if i use the following code to reset the PHY, nios hangs:alt_printf(" Software reset of PHY chip and wait ... \n");
*(tse + 0x80) = *(tse + 0x80) | 0x8000;
while ( *(tse + 0x80) & 0x8000 );
alt_printf(" Software reset of PHY chip ok ! \n");
I included a print of my qsys configuration, a copy of the instantiation and my C program as a .doc. Many thanks in advance. Johi.