Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHello Cris,
I hope that you see this message as soon as possible. So, I added this code :
tse_mac_device.desc_mem_base=DESCRIPTOR_MEMORY_BASE;
tse_mac_device.ext_desc_mem=1;//0;
tse_mac_device.tse_en_maclite=TRIPLE_SPEED_ETHERNET_0_ENABLE_MACLITE;
tse_mac_device.tse_mac_base=TRIPLE_SPEED_ETHERNET_0_BASE;
tse_mac_device.tse_maclite_gige=TRIPLE_SPEED_ETHERNET_0_MACLITE_GIGE;
tse_mac_device.tse_mdio_shared=TRIPLE_SPEED_ETHERNET_0_MDIO_SHARED;
tse_mac_device.tse_multichannel_mac=TRIPLE_SPEED_ETHERNET_0_IS_MULTICHANNEL_MAC;
tse_mac_device.tse_num_of_channel=TRIPLE_SPEED_ETHERNET_0_NUMBER_OF_CHANNEL;
tse_mac_device.tse_number_of_mac_mdio_shared=TRIPLE_SPEED_ETHERNET_0_NUMBER_OF_MAC_MDIO_SHARED;
tse_mac_device.tse_pcs_ena=TRIPLE_SPEED_ETHERNET_0_PCS;
tse_mac_device.tse_pcs_sgmii=TRIPLE_SPEED_ETHERNET_0_PCS_SGMII;
// tse_mac_device.tse_phy_cfg=alt_tse_phy_init;//(pmac);
tse_mac_device.tse_phy_mdio_address=0x12;
tse_mac_device.tse_rx_depth=TRIPLE_SPEED_ETHERNET_0_RECEIVE_FIFO_DEPTH;
tse_mac_device.tse_sgdma_rx=RX_SGDMA_NAME;
tse_mac_device.tse_sgdma_rx_irq=TX_SGDMA_IRQ;
tse_mac_device.tse_sgdma_tx=TX_SGDMA_NAME;
tse_mac_device.tse_shared_fifo_rx_ctrl_base=0;
tse_mac_device.tse_shared_fifo_rx_depth=0;
tse_mac_device.tse_shared_fifo_rx_stat_base=0;
tse_mac_device.tse_shared_fifo_tx_ctrl_base=0;
tse_mac_device.tse_shared_fifo_tx_depth=0;
tse_mac_device.tse_shared_fifo_tx_stat_base=0;
tse_mac_device.tse_tx_depth=TRIPLE_SPEED_ETHERNET_0_TRANSMIT_FIFO_DEPTH;
tse_mac_device.tse_use_mdio=1;
tse_mac_device.use_shared_fifo=TRIPLE_SPEED_ETHERNET_0_REGISTER_SHARED;
I add it in the "main" in "iniche_init.c" file. But the program reboot after "SSSInitialTask" has launched and I have the message on the uart debug : --- Quote Start --- ... INFO : PHY[0.0] - Auto-Negotiation PASSED INFO : Applying additional PHY configuration of Marvell 88E1111 INFO : PHY[0.0] - Checking link... INFO : PHY[0.0] - Link established INFO : PHY[0.0] - Speed = 1000, Duplex = Full OK, x=5, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x0400020b [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) boot etep608A ... --- Quote End --- I don't know why. Just ,when I configure "tse_mac_device[0].ext_desc_mem" to '0' instead of '1' , the program reboot before ,here exactly : --- Quote Start --- ... INFO : PHY[0.0] - Auto-Negotiation PASSED INFO : Applying additional PHY configuration of Marvell 88E1111 INFO : PHY[0.0] - Checking link... INFO : PHY[0.0] - Link established INFO : PHY[0.0] - Speed = 1000, Duplex = Full OK, x=5, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x0400020b [tse_sgdma_read_init] RX descriptor chain desc (1 depth) created boot etep608A .. --- Quote End --- I put my .spoc file and system.h file ,maybe you'll see something of obvious^^ thanks again.