2024-03-27 4:48 AM
Hi all,
i see H7 supports clause 45 MDIO access, but in the HAL library looks not implemented, i see only clause 22.
How should i proceed to read/write c45 ?
Thanks,
angelo
Solved! Go to Solution.
2025-10-13 6:58 PM
Um, can you tell me directly if STM32 has a series of Macs that support the Clause45 protocol to access the phy that supports Clause45?
If not, is it only the HAL library that does not support it, or is it the chip itself that does not support it;
If HAL does not support it and the chip itself supports it, can you provide a read-write sample? No relevant cases have been found on the Internet
-----I need to confirm as soon as possible whether STM32 can meet our needs
2025-10-13 11:51 PM - edited 2025-10-13 11:58 PM
Hi,
at least for stm32h7xx, both Clause 22 and 45 are supported in hardware.
What does it mean: that if you set c45e bit as 0 (default) the MDIO controller sends out data as per Clause 22. If c45e is set to 1, it sends C45.
I already added the functionality into HAL one year ago.
After long time waiting, probably one year or so, as you can see in the PR, ST replied i didn't signed a specific CLA agreement and the PR is refused. I decided to refuse also to spend time on this. Anyway, my commit works and you can use it from my PR.
regards,
Angelo Dureghello
2025-10-14 10:33 PM
Thank you for your contribution!!
2025-10-16 9:35 PM
Just to be correct, i've read an older PR. Reason for refusing this is that ST cannot test this since there are no ST dev kits with clause45 phy. I tested this from Zephyr just soldering 2 mdio wires to an Analog Devices dev board (adin1100), and opening the 2 lines in the nucleo.