Ethernet interface debug when send frame

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

Ethernet interface debug when send frame

1,520 次查看
aiit
Contributor II

I am debugging the RT1176 ENET_1G Ethernet interface and I find that when sending a mac frame, the system is stuck in the ENET_ActiveSendRing () function, *txDesActive = 0  execution could not be completed.

Debug environment:

broad: Maaxboard_imxRT117x_sbc

SDK: SDK_2_10_0_MIMXRT1170-EVK.tar

I suspect a clock configuration problem,and i try to change clock configuration, *txDesActive = 0 execution can be completed. but system block again. 

Clock configuration below:

 /* Set ENET_1G Tx clock source. */
    IOMUXC_GPR->GPR5 = ((IOMUXC_GPR->GPR5 & ~IOMUXC_GPR_GPR5_ENET1G_TX_CLK_SEL_MASK) | IOMUXC_GPR_GPR5_ENET1G_RGMII_EN_MASK);
    /* Set ENET_1G Ref clock source. */
    IOMUXC_GPR->GPR5 &= ~IOMUXC_GPR_GPR5_ENET1G_REF_CLK_DIR_MASK;
标记 (2)
0 项奖励
回复
3 回复数

1,508 次查看
aiit
Contributor II
static void ENET_ActiveSendRing(ENET_Type *base, uint8_t ringId) func locate at fsl_enet.c
0 项奖励
回复

1,485 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @aiit ,

Hope you are doing well!

I was not able to reproduce this issue you mentioned using the 1GEnet sample project in the SDK for NXP's RT1170-EVK. It works fine on my end. The clock configuration you mentioned is also the original configuration in the SDK. Since you are using a 3rd party development board, you may need to contact the 3rd party you purchased it from for support. Thank you in advance for your understanding and collaboration.

Best regards,
Gavin

0 项奖励
回复

1,445 次查看
aiit
Contributor II
Thanks! The original configuration in the SDK works fine at 100M Enet, but is not at 1G Enet!The 3rd party development board offers official enet example which modify from NXP example, i have tryied both above, does not work.
0 项奖励
回复