From 410e4173b163296645e1d6f9a4b475c2070b806a Mon Sep 17 00:00:00 2001 From: cyliangtw Date: Mon, 9 Dec 2019 18:12:26 +0800 Subject: [PATCH] Limit max of M487 EMAC RX frame len as 1518 --- .../emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c b/features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c index 64930643267..5bb093237c3 100644 --- a/features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c +++ b/features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c @@ -262,6 +262,8 @@ void numaker_eth_init(uint8_t *mac_addr) EMAC_CAMCTL_ABP_Msk; EMAC->CAMEN = 1; // Enable CAM entry 0 + /* Limit the max receive frame length to 1514 + 4 */ + EMAC->MRFL = 1518; reset_phy(); EMAC_ENABLE_RX();