Hi,
I’ve been using the following code to set the Mac address on the LPC1768: for a few years now and it works perfectly.
NetworkInterface *net;
char mac[] = {’\xB2’, ‘\x40’, ‘\x62’, ‘\xB7’, ‘\x42’, ‘\x88’};
extern “C” void mbed_mac_address(char *s)
{
memcpy(s, mac, 6);
};
I’ve now moved to the K66 processor and now I get the error:
Error: Symbol mbed_mac_address multiply defined (by …/…/build/mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/TARGET_FRDM/mbed_overrides.K66F.o and …/…/build/main.K66F.o).
I’ve tried the K64 code mentioned here: K64f mac address - #8 by hudakz While this does compile, the OS crashes instantly.
Regards
Roger