SDK Config Tools: ENET MII configuration option

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SDK Config Tools: ENET MII configuration option

1,695 次查看
TomaszOzon
Contributor I

Hello,

I'm trying to configure ENET interface in MII mode for MK64FX512VLQ12 controller.

There is no choice between RMII and MII. Why? How can I select MII?

kind regards,

TomaszOzon_1-1653389916429.png

 

 

 

0 项奖励
7 回复数

1,678 次查看
TomaszOzon
Contributor I

Hi @CarlosGarabito ,

I have created new project, configured Ethernet pins for MII, added LwIP and then added an interface based od ENET using + button. I have tried to remove interface and add it again, but still only RMII option is visible.

Is the MII interface option emabled by some other settings, that must be correctly set? I.e. clock? Pins?

(MCUXpresso IDE v11.5.1 [Build 7266] [2022-04-13])

0 项奖励

1,659 次查看
CarlosGarabito
NXP TechSupport
NXP TechSupport

The Ethernet clocking option you can find it on RM Chapter 3.9.1.1 were says: An externally-supplied 25 MHz MII clock or 50 MHz RMII clock. This clock is used as the timing reference for the external MII or RMII interface.

 

0 项奖励

1,656 次查看
TomaszOzon
Contributor I

Hi @CarlosGarabito 

> This clock is used as the timing reference for the external MII or RMII interface.

OK, so what I need to configure to enable MII/RMII selection? For MII I don't need any external clock, only MII_TXCLK and MII_RXCLK from PHY to MAC. They are already configured and I still can't select MII.

 

0 项奖励

1,639 次查看
CarlosGarabito
NXP TechSupport
NXP TechSupport

Hi @TomaszOzon on MCUXpresso, on config tools, you can help you with this.

CarlosGarabito_0-1654194192320.png

I hope this help you

0 项奖励

1,612 次查看
TomaszOzon
Contributor I

Hi @CarlosGarabito 

I think my pins configuration is fine (and it was before). Please have a look.

Maybe you could create a project for this microcontroller with MII pins configured and then check if MII option is available for LwIP+ENET?

TomaszOzon_0-1654767302306.png

 

0 项奖励

1,569 次查看
CarlosGarabito
NXP TechSupport
NXP TechSupport

Thats right, in MCUXpress you can select the example

 

CarlosGarabito_0-1655327697718.png

 

Go to config tool, modify

 

CarlosGarabito_1-1655327717209.png

So, you can find it

 

CarlosGarabito_2-1655327738798.png

 

 

And test it

 

 

 

 

 

0 项奖励

1,681 次查看
CarlosGarabito
NXP TechSupport
NXP TechSupport

Hi @TomaszOzon Could you explain the steps that you took to arrive at this point?

0 项奖励