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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

210 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Kyle:

Please refer to below thread.

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

Regards

Daniel

0 Kudos