This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6678: 网口

Part Number: TMS320C6678


在用6678给pc发包时,总是会进入某个中断,打印出如下信息(用的是GE例程),下边那些都是一些莫名其妙的打印信息。

[C66xx_0] JTAG ID= 0x1009e02f. This is C6678/TCI6608 device, version variant = 1.
DEVSTAT= 0x00000001. little endian, No boot or EMIF16(NOR FLASH) or UART boot, PLL configuration implies the input clock for core is 50MHz.
SmartReflex VID= 63, required core voltage= 1.104V.
Die ID= 0x1801400e, 0x0403e83c, 0x00000000, 0x56840021
Device speed grade = 1000MHz.
Enable Exception handling...
Initialize DSP main clock = 100.00MHz/1x10 = 1000MHz
Initialize PASS PLL clock = 100.00MHz/2x21 = 1050.000MHz
Initialize DDR speed = 66.67MHzx/1x20 = 1333.333MTS
received 328 bytes (last byte=0x0), packet type = 0x0800, from srouce address 0x8cec4b8e905b to destination address 0xffffffffffff
received 143 bytes (last byte=0x27), packet type = 0x86dd, from srouce address 0x8cec4b8e905b to destination address 0x333300010002
received 328 bytes (last byte=0x0), packet type = 0x0800, from srouce address 0x8cec4b8e905b to destination address 0xffffffffffff
received 328 bytes (last byte=0x0), packet type = 0x0800, from srouce address 0x8cec4b8e905b to destination address 0xffffffffffff
Ethernet PHY1 link up. TSCL= 0x40b1f4b
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40b7295
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link down. TSCL= 0x40bc572
Ethernet PHY1 link up. TSCL= 0x40bea73
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40c3d39
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40c9017
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40ce2fa
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40d35d5
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40d88ac
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40ddb8b
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link down. TSCL= 0x40e2e6c
Ethernet PHY1 link up. TSCL= 0x40e5371
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link down. TSCL= 0x40ea639
Ethernet PHY1 link up. TSCL= 0x40ecb38
SGMII1 Link Partner Advertised Ability 1000Mbps Full Duplex
Ethernet PHY1 link up. TSCL= 0x40f1e00

  • 进入的中断是这个

    void PHY_Link_State_Update(Uint32 link_num)
    {
    Uint32 uiPhy_NUM;

    uiPhy_NUM= gpMDIO_regs->USER_GROUP[link_num].USER_PHY_SEL_REG&CSL_MDIO_USER_PHY_SEL_REG_LINKSEL_SHIFT;
    if(gpMDIO_regs->LINK_REG&(1<<uiPhy_NUM))
    {
    printf("Ethernet PHY%d link up. TSCL= 0x%x\n", uiPhy_NUM, TSCL);
    print_GE_link_ability(link_num);
    }
    else
    printf("Ethernet PHY%d link down. TSCL= 0x%x\n", uiPhy_NUM, TSCL);

    /* Clear Interrupt events in MDIO*/
    gpMDIO_regs->LINK_INT_RAW_REG= 1<<uiPhy_NUM;
    }

  • PHY_Link_State_Update是检测phy link状态的,看打印信息是phy连接状态不稳定,是自制板吗?是否有其他相同设计的板子可以进行测试,排除看一下是否是硬件焊接上有问题。

  • 您好,是官方的评估版。手头暂没有其他板子做测试。