Skip to main content
Visitor II
May 8, 2025
Question

Ethernet Packet Broadcast MAC address

  • May 8, 2025
  • 1 reply
  • 395 views

I am trying to write a ethernet loopback test and I am unable to set the destination MAC address (FF:FF:FF:FF:FF:FF) to broadcast to. Since this is for testing, we want to avoid using NetX.

Is there an example of HAL_ETH_Transmit and HAL_ETH_ReadData back to back and/or a function in the API that can set the destination MAC address?

    This topic has been closed for replies.

    1 reply

    Graduate
    May 9, 2025

    You can use one Echo Server example anf trikle it; this seems the easiest for a hw test.

    Without an OS you will have to write many lines of code to have your OS, using NetxDuo is faster, tested and reliable.

    DHCP and DHCPv6, ICMPv6 send broadcast messages, ARP also, MAC address can be any but FF:FF:FF:FF:FF:FF is special for broadcast - any OS based exemple will receive this address, but you must also take in account that you will be connected to some external switch and switches are not protocol agnostic (some).