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

TSE with NicheStack Problem

Altera_Forum
Honored Contributor II
1,066 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
335 Views

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