Thank you both. I followed the example of same70-xplained, and essentially
I do the exact same thing.
However, as I get it, the final step would be to call stm32_macaddress() to
set the address to the MAC.
This function takes as an argument a struct stm32_ethmac_s which is private
to the stm32_eth driver.
So I understand that I cannot set the MAC address within the board
initialization.
Is there any other way? Or maybe this function shall be changed to:
void stm32_macaddress(int intf);
You can always set the MAC address in your application at any time after
booting using
https://github.com/apache/incubator-nuttx-apps/blob/master/netutils/netlib/netlib_setmacaddr.c
or similar logic in-line in your applilcation.