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;