RT1052 ENET MII接口配置

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1052 ENET MII接口配置

1,906 Views
brli
Contributor III

你好

请问有RT1052 ENET MII接口的配置例程, 或说明文档?

RMII接口已经配置成功, 但是MII的一直没通。

谢谢!

Labels (1)
0 Kudos
3 Replies

1,843 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi br li 

   MII 和RMII的外部引脚接线也有区别,你那边有接了对应MII的引脚吗?

   关于文档,你需要查看RT1050 参考手册的Chapter 41 10/100 /1000 -Mbps Ethernet MAC (ENET)

  引脚情况,你需要看下41.4 External Signals

  

Wish it helps you!

If you still have questions about it, please kindly let me know.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

1,843 Views
brli
Contributor III

Kerry 您好!

谢谢您的回复!

目前网络已经通了,但是又遇到新的问题,ping1052有10%的丢包率,请问下从RMII到MII除了修改MII模式外,还需要修改哪些配置?

void ENET_GetDefaultConfig(enet_config_t *config)
{
/* Checks input parameter. */
assert(config);

/* Initializes the MAC configure structure to zero. */
memset(config, 0, sizeof(enet_config_t));

/* Sets MII mode, full duplex, 100Mbps for MAC and PHY data interface. */
#if defined(FSL_FEATURE_ENET_HAS_AVB) && FSL_FEATURE_ENET_HAS_AVB
config->miiMode = kENET_RgmiiMode;
#else
config->miiMode = kENET_MiiMode;//kENET_RmiiMode;
#endif
config->miiSpeed = kENET_MiiSpeed100M;
config->miiDuplex = kENET_MiiFullDuplex;

config->ringNum = 1;
config->interrupt |= (ENET_TX_INTERRUPT|ENET_RX_INTERRUPT);
/* Sets the maximum receive frame length. */
config->rxMaxFrameLen = ENET_FRAME_MAX_FRAMELEN;
}

或有其它建议?

谢谢!!

0 Kudos

1,843 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi br li,

 楼主你好,你用的是自己的板子实现MMI吗?

 可以把你10%丢包率的测试结果图片也发出来吗?

  目前你这个10%的丢包率测试代码,是只改了上面代码截图的模式,对吗?另外,其他MMI相关引脚是否都配置了呢?

Wish it helps you!

If you still have questions about it, please kindly let me know.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos