Skip to content

Commit

Permalink
Limit max of M487 EMAC RX frame len as 1518
Browse files Browse the repository at this point in the history
  • Loading branch information
cyliangtw committed Dec 9, 2019
1 parent 8d246d8 commit 410e417
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 410e417

Please sign in to comment.