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.