There is a bug in "driver\ethmac\src\dynamic\drv_eth_pic32_lib.c". The function "DRV_ETH_MACSetAddress()" sets the bytes in the wrong order by transposing EMACxSA0 and EMACxSA2.
The order should be:
EMACxSA0 => bytes 4 & 5
EMACxSA1 => bytes 2 & 3
EMACxSA2 => bytes 0 & 1
This can be seen from the function "DRV_ETH_MACGetAddress()", which uses the correct order.
Symptoms
In the NETCONFIG instance, set the MAC Address to "10:20:30:40:50:60"
Using Wireshark, the actual MAC transmitted is shown as "50:60:30:40:10:20"
There is a bug in "driver\ethmac\src\dynamic\drv_eth_pic32_lib.c". The function "DRV_ETH_MACSetAddress()" sets the bytes in the wrong order by transposing EMACxSA0 and EMACxSA2.
The order should be: EMACxSA0 => bytes 4 & 5 EMACxSA1 => bytes 2 & 3 EMACxSA2 => bytes 0 & 1 This can be seen from the function "DRV_ETH_MACGetAddress()", which uses the correct order.
Symptoms
In the NETCONFIG instance, set the MAC Address to "10:20:30:40:50:60" Using Wireshark, the actual MAC transmitted is shown as "50:60:30:40:10:20"