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