AnsweredAssumed Answered

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

Question asked by Kyle Yang on Oct 30, 2019
Latest reply on Oct 31, 2019 by Daniel Chen

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);

Outcomes