mimxrt: Re-Enable eth checksum creation by HW.

The initial problem with a wrong ICMP checksum was caused by
the test code setting a checksum and the HW taking that probably as
the start value and ending up with 0xffff. With a checksum field of 0
set by the test code the HW creates the proper checksum.
This commit is contained in:
robert-hh
2021-11-09 13:58:45 +01:00
parent bbe25f4704
commit ea09dccfea
2 changed files with 2 additions and 13 deletions

View File

@@ -13,11 +13,8 @@
#define MEM_ALIGNMENT 4
#define LWIP_CHKSUM_ALGORITHM 3
// Chksum generaration by HW fails for ICMP
// Maybe caused by LWIP inserting ffff instead of 0000
// The checksum flags are set in eth.c
#define LWIP_CHECKSUM_CTRL_PER_NETIF 0
#define LWIP_CHECKSUM_ON_COPY 0
#define LWIP_CHECKSUM_CTRL_PER_NETIF 1
#define LWIP_ARP 1
#define LWIP_ETHERNET 1