Content originally posted in LPCWare by MikeSimmonds on Mon Sep 16 22:22:44 MST 2013
UM10470 rev 2.1 (6-Mar-13) section 10.7; figure 22 is false to fact!
MAC addresses are transmitted oct1m oct2, ... oct6
This is shown by the dumps in wireshark and in packet dumps in my
firmware in the debugger.
E.g: my board;s MAC is 00:04:A3:3B:D7:C6
[Code]
movsr1, memBase; get MAC addr from eeprom cache
ldrhr0, [r1, eMac+4]; last 2 digits ABCD[EF]
strr0, [r7, netMacAddr0];
ldrhr0, [r1, eMac+2]; middle 2 digits AB[CD]EF
strr0, [r7, netMacAddr1];
ldrhr0, [r1, eMac+0]; first 2 digits [AB]CDEF
strr0, [r7, netMacAddr2];
movsr0, 0x26; unicast/multicast/broadcast
strr0, [r7, netRxFltCtrl];
[/Code]
Note how the valuses are in reverse order to the EMAC registers!
Cheers, Mike