2025-04-09 9:11 PM - edited 2025-04-10 3:58 PM
On STM32H753, is it possible to disable Ethernet MAC source address replacement?
I am working on a project that requires packet bridging, and I am stuck by the MAC altering the source address of bridged packets!
Reference manual section 58.5.2 discusses source address insertion/replacement. It refers to register MACCR, bits SARC. But the definition for these bits does not have an option to disable the MAC from overwriting the source address in my packets.
Edit: I tried setting SARC bits to all zero and it seems to disable address replacement. But this is not documented. It appears bit 28 selects insert/replace, bit 30 selects address 0/1 and bit 29 enables/disables address insertion. Does anybody have arms into ST to confirm if this is indeed the case?
Edit: STM32H7 HAL driver for Ethernet seems to offer a disable option for source MAC replacement, so maybe it is a thing.
2025-05-14 9:50 AM
Hello @ADunc.1,
Thank you for bringing this to our attention.
As you correctly pointed out, you can use the ETH_SOURCEADDRESS_DISABLE address defined in the HAL driver to potentially disable the source MAC address replacement. However, you are right that this option is not clearly documented in the reference manual.
This matter is being tracked internally. An internal ticket (209773) has already been raised for follow-up.
With Regards,