2022-08-24 08:01 AM
I am working on Ethernet in STM32H745 MCU and using STM32CubeIDE. I want to connect 100 such MCU to LAN.
How can I assign a different MAC address to all the MCU? Do STM MCUs have a built-in MAC that I can use, or is there any other method to assign different MAC to many MCUs?
Further, I want to filter out ethernet packets having a particular MAC address. What are the different methods available to apply such filters? Can these filters be applied on the PHY layer(LAN8742) or HAL or any other method?
2022-08-26 05:38 AM
Dear ST Team,
I am blocked because of the issue, kindly help by providing a solution to the problem.
Waiting for the reply.
2022-08-26 06:19 AM
ST doesn't provide MAC addresses, these would need to be bought in blocks from the IEEE, or whatever the current issuing authority is,and you'd have to assign them to your individual devices.
As I recall the ETH MAC peripheral on the STM32's can filter based on a CRC32/HASH type mechanism, it's been a while since I looked. But it should be described in the RM for those who use such things.
2022-08-28 10:17 AM
For MAC addresses there are 3 options:
Except for monitoring the magic packet wake-up frames, PHY operates at L1 (physical) layer and doesn't process anything at L2 (MAC) layer. Generally you don't need any filtering at all, because the network switches already send only the frames destined to your MAC address and a broadcast/multicast frames. Read my posts in this topic:
https://community.st.com/s/question/0D50X0000BNu2BFSQZ/ethernet-performance-packets-loss