Hi,
The revision history showed that this update has included this feature "updated Ethernet interface for reading the MAC address from the driver, if a unique MAC address is available in the driver".
Does anyone know what this means? Is there any sample code that can explain this new feature?
Thank you.
Read the EEPROM in the code, and then set up the MAC address with netIF_SetOption. The above function is usually used with external EMAC controllers, which have direct access to the EEPROM.
This is confusing me now because the previously Keil Network component can use the below routine to change the default MAC address which is defined in Net_Config_ETH_0.h.
netIF_SetOption(NET_IF_CLASS_ETH | 0, netIF_OptionMAC_Address, Mac_Addr, 6);
So what is the difference between the new Keil network components?
There is no difference and your code is correct, continue to use it.
The discussion is about an extra feature that is rarely used, for example, with LAN91C111. This ethernet controller supports "Optional Configuration via Serial EEPROM Interface" Read the LAN91C111 datasheet, section 7.6 Serial EEPROM Interface