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,168件の閲覧回数
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,098件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Kyle:

Please refer to below thread.

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

Regards

Daniel

0 件の賞賛
返信