STM32H7, Ethernet - Setting MDC pin seems to wipe out TX_CLK
Hello,
First time posting here so I apologise in advance to admins if this is in the wrong area.
I’m attempting to use a DP838xx series PHY with an STM32H7xxx series chip in MII mode and I’m running into this odd issue where whenever the ETH_MDC pin is initialized, the TX_CLOCK completely drops out. I believe my PHY is reset when I set the MDC pin. I can’t seem to get around this at the moment and wonder if perhaps there is something quirky or unusual that I’m not aware of?
I have this crazy idea that perhaps the pin is being pulled low just at the right time as to send something to the PHY to tell it to reboot or shutdown but I’m not able to look into that much detail.
Things I have tried:
1. Full setting up my PHY by writing to it’s registers for MII mode and the correct physical medium
2. The same but in RGMII mode and then attempting to switch
3. Completely fresh project without LWiP stack, manually enabling the ethernet pins one at a time (this is where I discovered that the MDC pin was the issue)
4. Setting up the mac-side first and then the PHY
I would appreciate any help, apologies if I have not been quite clear.
Alternatively, I would be very grateful if anyone had any links to code examples for those chips/phys.
I have looked at How to make Ethernet and lwIP working on STM32 | Community but to no avail.
Thanks,
cool-dude-1337
