Ethernet interface debug when send frame

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

Ethernet interface debug when send frame

1,516 Views
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;
Tags (2)
0 Kudos
Reply
3 Replies

1,504 Views
aiit
Contributor II
static void ENET_ActiveSendRing(ENET_Type *base, uint8_t ringId) func locate at fsl_enet.c
0 Kudos
Reply

1,481 Views
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 Kudos
Reply

1,441 Views
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 Kudos
Reply