Skip to content

Commit 410e417

Browse files
committed
Limit max of M487 EMAC RX frame len as 1518
1 parent 8d246d8 commit 410e417

File tree

1 file changed

+2
-0
lines changed
  • features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480

1 file changed

+2
-0
lines changed

features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_M480/m480_eth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,8 @@ void numaker_eth_init(uint8_t *mac_addr)
262262
EMAC_CAMCTL_ABP_Msk;
263263
EMAC->CAMEN = 1; // Enable CAM entry 0
264264

265+
/* Limit the max receive frame length to 1514 + 4 */
266+
EMAC->MRFL = 1518;
265267
reset_phy();
266268

267269
EMAC_ENABLE_RX();

0 commit comments

Comments
 (0)