Forum Discussion

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

TSE with NicheStack Problem

I've got the NicheStack license.

I'm using NIOSII IDE 8.1

I've got the DP83848C ethernet chip.

I've got a custom CPU without the I2C.

My project based on the Simple Socket Server with a Static IP Address.

I have made sure that I assign a MAC address based on the Static IP Address and have written it into Flash. (keeping with the logic of the network_utilities.c for the NEEK)

The problem is that during "tse_mac_init" sometimes:

1. Messages look good and I can connect

2. sometimes all the messages look good and I CANNOT connect

3. sometimes I get WARNINGS and can connect

WARNING : PHY[0.0] - PHY not capable for Auto-Negotation

4. sometimes I get WARNINGS and CANNOT connect

WARNING : PHY[0.0] - PHY not capable for Auto-Negotation

3. And EVEN sometimes I get ERRORS and I CAN connect

ERROR : MAC Group[0] - No PHY connected!

ERROR : PHY[0.0] - No PHY connected! Speed = 100, Duplex = Full

There is no rhyme or reason to this as the code is the same.

Could it be an interaction with the uC-OS and the HAL ?

Any suggestions.

Thanks in advance

Janet

1 Reply

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

    For starters, it looks like you have a problem on the MDIO interface between the TSE core and you PHY chip. Could you connect Signaltap probes, or a scope on the pins and check if the signals are ok?

    It could also come from bad initialization of the PHY chip. Are you sending it a reset pulse on start up?