Prajwal_RJ146
New Contributor
2 years agoGot stuck during establishing ethernet Communicaton using Quartus prime and Nios software.
Dear Sir/Madam,
I am currently working on establishing Ethernet communication between a Cyclone V FPGA (5CEFA7F27I7) and a DP83867IR Ethernet Physical Transceiver IC using Quartus Prime 16.0.0 and Nios II - Eclipse software. I have attached several files for reference, including screenshots of the schematic, QSYS configuration, and the .bdf file.
Description:
Configuration:
- QSYS Configuration: I am using a Nios II processor, Triple-speed Ethernet, and Scatter Gather DMA Controller IPs (one each for Tx and Rx).
- HDL File Generation: After generating the HDL (.sopcinfo) file from QSYS, I converted it into a .bsf file and included it as blocks in the .BDF file (Top Module). Additionally, I am using a self-created gmii_mii_mux block for mode selection and an eth_phy_reset block.
- Operating System: Micrium MicroC/OS-II is being used in nios ii software.
Testing and Code:
- Initial Testing: I have verified the functionality of SDRAM and CFI_Flash, which are operating satisfactorily.
- Network Initialization: I created a thread to run the InitNetwork function. The main file (hello_world1.c) has been attached for your review.
- Manual Configuration: Since there are no existing libraries for the DP83867IR IC, I manually added the IC configuration and link_status_read functions in the Altera_Avalon_Tse.h and Altera_Avalon_Tse.c files.
Current Issue:
- Detection and Configuration: The PHY is detected at address 0x00. However, it attempts to read the PHY ID from the remaining addresses, resulting in a warning: "Number of PHY connected is not equal to the number of channels; Number of PHY: 32, Channel: 1."
- Error Messages: The console indicates that the link is established and displays the user IP address. However, when attempting to ping the unit from a PC, the following errors occur:
- "Reply from 192.168.0.26: Destination host unreachable."
- "Request timed out."
I would greatly appreciate your assistance in resolving these issues.
Thank you for your support.