Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI use quartus ii 8.0.
The below is my codes --- Quote Start --- enum { KSZ8893_OUI = 0x225, KSZ8893_MODEL = 0x05, KSZ8893_REV = 0x00 }; alt_tse_phy_profile KSZ8893 = { "KSZ8893", /* ksz8893 */ KSZ8893_OUI, /* OUI */ KSZ8893_MODEL, /* Vender Model Number */ KSZ8893_REV, /* Model Revision Number */ 0x3F, /* Location of Status Register */ 2, /* Location of Speed Status */ 1, /* Location of Duplex Status */ 0 /* NO MEAN */ }; /* add supported PHY to profile */ alt_tse_phy_add_profile(&KSZ8893); --- Quote End --- I am not quite understand about "&KSZ8893M_phy_cfg" and "&KSZ8893M_link_status_read", could you teach me how to make them? And now, I make (ps1,ps0)=I2C slave mode , (SCONF1, SCONF0)=PHY mode MII, and write 0x01 into 0x01. What I did just above. This my report. --- Quote Start --- InterNiche Portable TCP/IP, v3.1 Copyright 1996-2007 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 Could not locate flash sector with MAC address. Static IP Address is 192.168.1.30 prepped 1 interface, initializing... [tse_mac_init] Marvell 88E1111 Marvell Quad PHY 88E1145 National DP83865 National DP83848C KSZ8893MQL INFO : TSE MAC 0 found at address 0x00000000 INFO : PHY KSZ8893MQL found at PHY address 0x01 of MAC Group[0] INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0] INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... INFO : PHY[0.0] - Auto-Negotiation PASSED INFO : PHY KSZ8893MQL found at PHY address 0x02 of MAC Group[0] ERROR : PHY[0.0] - Mapping of PHY to MAC failed! Make sure the PHY address is defined correctly in tse_mac_device[] structure, and number of PHYs connected is equivalent to number of channel INFO : PHY KSZ8893MQL found at PHY address 0x03 of MAC Group[0] ERROR : PHY[0.0] - Mapping of PHY to MAC failed! Make sure the PHY address is defined correctly in tse_mac_device[] structure, and number of PHYs connected is equivalent to number of channel WARNING : MAC Group[0] - Number of PHY connected is not equal to the number of c hannel, Number of PHY : 3, Channel : 1 INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... INFO : PHY[0.0] - Auto-Negotiation PASSED INFO : PHY[0.0] - Checking link... INFO : PHY[0.0] - Link established INFO : PHY[0.0] - Gigabit = 0, Duplex = Half OK, x=1, CMD_CONFIG=0x01000000 MAC post-initialization: CMD_CONFIG=0x05000603 [tse_sgdma_read_init] RX descriptor chain desc (1 depth) created IP address of et1 : 192.168.1.30 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) --- Quote End --- Thank you very much!