TC234的Ethernet mii 配置问题

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
arvin1
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked
在使用TC234的MAC对MAC的配置时,发现发送正常,接收不正常 如果开启回环模式,接收又是正常的 代码设置如下: void EthDemo_init(uint8 *mac_addr) { /* configure Ethermac */ uint16 value; IfxEth_Config config; IfxEth_initConfig(&config, &MODULE_ETH); config.phyInterfaceMode = IfxEth_PhyInterfaceMode_mii; config.miiPins = &MiiPins; config.isrPriority = ISR_PRIORITY_ETH_IRQ; memcpy(config.macAddress, mac_addr, 6); /* Initialise Eth Config */ IfxEth_init(&g_Eth.drivers.eth, &config); IfxEth_startTransmitter(&g_Eth.drivers.eth); IfxEth_startReceiver(&g_Eth.drivers.eth); //IfxEth_setLoopbackMode(&g_Eth.drivers.eth, TRUE); }
0 点赞
6 回复数
arvin1
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked
const IfxEth_MiiPins MiiPins = { NULL_PTR, /**< rief pointer to CRS input pin config */ NULL_PTR, /**< rief pointer to COL input pin config */ &IfxEth_TXCLKC_P13_1_IN, /**< rief Pointer to TXCLK input pin config */ &IfxEth_RXCLKA_P11_12_IN, /**< rief Pointer to RXCLK input pin config */ &IfxEth_RXDVA_P11_11_IN, /**< rief Pointer to RXDV input pin config */ NULL_PTR, /**< rief Pointer to RXER input pin config */ &IfxEth_RXD0A_P11_10_IN, /**< rief Pointer to RXD0 input pin config */ &IfxEth_RXD1A_P11_9_IN, /**< rief Pointer to RXD1 input pin config */ &IfxEth_RXD2A_P11_8_IN, /**< rief Pointer to RXD2 input pin config */ &IfxEth_RXD3B_P10_5_IN, /**< rief Pointer to RXD3 input pin config */ &IfxEth_TXEN_P11_6_OUT, /**< rief Pointer to TXEN output pin config */ NULL_PTR, /**< rief Pointer to TXER output pin config */ &IfxEth_TXD0_P11_3_OUT, /**< rief Pointer to TXD0 output pin config */ &IfxEth_TXD1_P11_2_OUT, /**< rief Pointer to TXD1 output pin config */ &IfxEth_TXD2_P13_3_OUT, /**< rief Pointer to TXD2 output pin config */ &IfxEth_TXD3_P13_2_OUT, /**< rief Pointer to TXD3 output pin config */ &IfxEth_MDC_P21_2_OUT, /**< rief Pointer to MDC pin config */ &IfxEth_MDIO_P21_3_INOUT, /**< rief Pointer to MDIO pin config */ }; IO配置
0 点赞
harvis
Level 5
Level 5
10 solutions authored First like received First like given
回环模式正确说明芯片是没有问题,建议把MII的各个配置参数梳理成表,逐项核对。
0 点赞
arvin1
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked
MII的具体配置参数有哪些呢,有没有配置说明文档,目前是按照DRV接口进行配置的,没有文档
0 点赞
harvis
Level 5
Level 5
10 solutions authored First like received First like given
问题解决了吗?
0 点赞
harvis
Level 5
Level 5
10 solutions authored First like received First like given
检查一下pin脚功能的配置
0 点赞
arvin1
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked
没解决,PIN脚检查过,没问题,port口的设置和文档对了一遍也是没问题
0 点赞