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.

TMS320F28388D: How to change the mii interface in lwip routine to rmii mode

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Dear team:

After my customer set up the mapping according to the instructions in the above post, he checked that the 1.2V of the PHY chip can be output normally, and the 50MHz crystal oscillator can also be output to the development board normally, but connecting to the computer will display: unrecognized network, Ping unsuccessful, Ping: transmission failed. General failture;

Add a breakpoint in the transmission / reception interrupt, and it is found that there is no transmission / reception interrupt;

PHY RESET is pulled up.

Software

initialization of GPIO

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RMII
GPIO_setPinConfig(GPIO_105_ENET_MDIO_CLK);
GPIO_setPinConfig(GPIO_106_ENET_MDIO_DATA);
GPIO_setPinConfig(GPIO_114_ENET_MII_RX_DATA0);
GPIO_setPinConfig(GPIO_53_ENET_MII_RX_DATA1);
GPIO_setPinConfig(GPIO_113_ENET_MII_RX_ERR);
// GPIO_setPadConfig(113U, GPIO_PIN_TYPE_STD);
// GPIO_setDirectionMode(113U, GPIO_DIR_MODE_OUT);
// GPIO_writePin(113U, 0);
GPIO_setPinConfig(GPIO_112_ENET_MII_RX_DV);
GPIO_setPinConfig(GPIO_121_ENET_MII_TX_DATA0);
GPIO_setPinConfig(GPIO_122_ENET_MII_TX_DATA1);
//
// MDIO Signals
//
// GPIO_setPinConfig(GPIO_105_ENET_MDIO_CLK);
// GPIO_setPinConfig(GPIO_106_ENET_MDIO_DATA);
GPIO_setPinConfig(GPIO_45_ENET_MII_TX_EN);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Mac part:

Compared with the mii program in the routine, rmii only changes the following in the phymode Ethernet_init(pucMACArray) function:

\\  initInterfaceConfig.phyMode = ETHERNET_SS_PHY_INTF_SEL_MII;

to:

 initInterfaceConfig.phyMode = ETHERNET_SS_PHY_INTF_SEL_RMII;

Where could this problem be?

Best regards,

Green