i.MX RT serires: How to read out the register value from Rx Packet Count Statistic Register "ENET_RMON_R_PACKETS"

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

i.MX RT serires: How to read out the register value from Rx Packet Count Statistic Register "ENET_RMON_R_PACKETS"

1,130 次查看
kyleyang
Contributor IV

Hello,

I create a lwip ethernet project code and want to read out the TX/RX packet count from register "ENET_RMON_R_PACKETS" and "ENET_RMON_T_PACKETS".

But the value of the register is always zero even if transceive the data packet.

Here is my code:

    ENET_Type* base = ENET;


    PRINTF("RMON_T_PACKETS=%u\r\n", base->RMON_T_PACKETS);

    PRINTF("RMON_R_PACKETS=%u\r\n", base->RMON_R_PACKETS);
    PRINTF("IEEE_T_FRAME_OK=%u\r\n", base->IEEE_T_FRAME_OK);
    PRINTF("IEEE_R_FRAME_OK=%u\r\n", base->IEEE_R_FRAME_OK);

0 项奖励
回复
1 回复

1,060 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Kyle:

Please refer to below thread.

https://community.nxp.com/message/1060928 

Regards

Daniel

0 项奖励
回复