Hi,
I have used in init scripts:
ifconfig eth0 <ip_address> hw <mac_address>
ifup eth0
One suitable place could be in rc.board_defaults, you just need to fetch
the mac address from the eeprom first with some other program.
Another option surely is to bring it up in board's board_app_initialize
or such...
Regards,
Jukka
On 2.8.2020 13.59, Fotis Panagiotopoulos wrote:
Hi,
I am using an STM32F427 MCU on a project that I am porting to NuttX.
For the moment everything seems to be working, apart from the Ethernet MAC.
I really can't find the correct way to set the MAC address to the Ethernet
driver.
My hardware uses an I2C EEPROM to store the MAC address. I will have to
read the EEPROM, and pass the address to the MAC driver.
Which is the correct function to use to set the MAC address?
When is the correct time during system initialization to do so?