Forum Discussion
Altera_Forum
Honored Contributor
14 years agoWell I did everything once again and this is what I get from the simple_socket_server_RGMII with the following options:
-DHCP disabled -TCP enabled The PIN used for the mdc and mdio_inout are the same than those used in the Altera niosii-triple-speed-ethernet-4sgx230-v10-1/tserd_4sgx230 design which are: enet_tx_p PIN_L29 enet_rx_p PIN_AC31 enet_mdc PIN_AH34 enet_mdio PIN_M33 I also changed the get_mac_addr() function to: int get_mac_addr(NET net, unsigned char mac_addr[6]) { error_t error = 0; mac_addr[0]=0xB7; mac_addr[1]=0xA7; mac_addr[2]=0xED; mac_addr[3]=0xFF; mac_addr[4]=0xFF; mac_addr[5]=0xFF; printf("Your Ethernet MAC address is %02x:%02x:%02x:%02x:%02x\n", mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]); return error; } And when I run my software the message I got is: ************************************************************* InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 Your Ethernet MAC address is b7:a7:ed:ff:ff:ff Static IP Address is 192.168.1.234 prepped 1 interface, initializing... [tse_mac_init] INFO : TSE MAC 0 found at address 0x00000400 ERROR : MAC Group[0] - No PHY connected! INFO : PCS[0.0] - Configuring PCS operating mode INFO : PCS[0.0] - PCS SGMII mode enabled ERROR : PHY[0.0] - No PHY connected! Speed = 100, Duplex = Full OK, x=0, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x04000203 [tse_sgdma_read_init] RX descriptor chain desc (1 depth) created mctest init called IP address of et1 : 192.168.1.234 Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) Simple Socket Server starting up [sss_task] Simple Socket Server listening on port 30 Created "simple socket server" task (Prio: 4) ***************************************************************** I also attached the signaltap screenshot. It seems that my PHY still doesn't work even if my MDIO get an answer coming from the PHY. Thank you