We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 410e417 commit 54d8c40Copy full SHA for 54d8c40
features/netsocket/emac-drivers/TARGET_NUVOTON_EMAC/TARGET_NUC472/nuc472_eth.c
@@ -228,6 +228,9 @@ void numaker_eth_init(uint8_t *mac_addr)
228
init_rx_desc();
229
230
numaker_set_mac_addr(mac_addr); // need to reconfigure hardware address 'cos we just RESET emc...
231
+
232
+ /* Limit the max receive frame length to 1514 + 4 */
233
+ EMAC->MRFL = 1518;
234
reset_phy();
235
236
EMAC->CTL |= EMAC_CTL_STRIPCRC_Msk | EMAC_CTL_RXON_Msk | EMAC_CTL_TXON_Msk | EMAC_CTL_RMIIEN_Msk | EMAC_CTL_RMIIRXCTL_Msk;
0 commit comments