Skip to content

STM32 EMAC does not support EthernetInterface.set_mac_address #14452

@JojoS62

Description

@JojoS62

Description of defect

calling set_mac_address() for STM32 targets returns NSAPI_ERROR_UNSUPPORTED, so it is not implemented.
The HAL supports setting a MAC address by ETH_MACAddressConfig().
Was there a reason for not implementing this function or are the drivers not ready for this?
Is there a schedule for adding this function? Otherwise I would try to make a PR when I get it working.
Setting the MAC is important for custom boards to companies MAC ranges.

Target(s) affected by this defect ?

STM32, tested with Nucleo STM32F46ZG

Toolchain(s) (name and version) displaying this defect ?

gcc 9.x

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.9.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli

How is this defect reproduced ?

call eth.set_mac_address(myMAC, sizeof(myMAC); before net.connect();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions