Limit max of M487 EMAC RX frame len as 1518

pull/12057/head
cyliangtw 2019-12-09 18:12:26 +08:00
parent 8d246d8ac1
commit 410e4173b1
1 changed files with 2 additions and 0 deletions

View File

@ -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();