hi all,
please help me how to find the MAC address of a device for ethernet coding. and also please help how to set the MAC address.
we are using the LAN8720 IC for ethernet interface.
Your question is about as simple to answer as if I would ask "Please help me how to find the color of my t-shirt."
Don't you think it would have been good if you had given a bit more information?
It really isn't so easy to locate a device if you neither know IP nor MAC and you don't know of any broadcast message that the device responds to.
But right now, we don't even know if you have a hardware unit you want to find the MAC for, or if you have the source code but don't know where the MAC is specified.
Actually, we don't know basically anything, except the name of a specific chip. The datasheet for that chip doesn't seem to indicate that there are any magic display on it that will present the used MAC address.
You might be able to do > ping 255.255.255.255 or > ping 224.0.0.1
And check your arp table.
But not all devices cares about broadcast ping or multicast ping.
Or you might consider using the program arp-scan
i am using the sample code of lpc1788 it is working in development board............ but its not working with the other lpc1788 controller board.
it is having the same pin connections as per development board schematic. it is showing connected but when we try to ping with the ip address of microcontoller ethernet it is not pinging...
its showing request timed out.
so how to resolve this.
Study carefully at the schematics, source code, and documentation of the working board until you understand how the MAC address is set, stored, and used.
Once you understand how the MAC address is set, stored, and used on the working board, you will be able to trace where that's going wrong on the oher board.
View all questions in Keil forum