Bad udp ckecksum Enet_mii_udp demo DEVKIT-MPC5748G

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

Bad udp ckecksum Enet_mii_udp demo DEVKIT-MPC5748G

756 次查看
manuelmoreno-eg
Contributor II

Hi,

I have been testing the enet_mii_udp demo from S32 in a DEVKIT-MPC5748G.

Without modifying the mentioned example, checksum is always 0.

After adding the following lines from discussionMPC5748G ENET :

ENET.TACC.B.PROCHK = 1;  // Enables insertion of protocol checksum

ENET.TACC.B.IPCHK = 1;  // Enables insertion of IP header checksum.
ENET.TFWR.B.STRFWD =1;// Enabled Store And Forward, TFWR[STRFWD] field must be set to use checksum feature

a checksum different to zero is included in the frame. However, Wireshark tells me:

[bad udp cksum ...]

Any suggestions?

I do not understand the sentence from the Reference Manual "The checksum field
must be cleared by the application generating the frame."
Perhaps this is the problem.

Thanks a lot in advance,

Manuel

标签 (1)
标记 (2)
0 项奖励
回复
0 回复数