2024-10-22 07:07 AM - last edited on 2024-10-22 07:11 AM by Andrew Neil
We have designed a boards, main board has STM32H742VGT6 and it is connected to Microchip PHY IC KSZ8091RNBCA in RMII Mode, Onboard Clock 25Mhz for PHY)
we have tried basic configuration such as enabled ETH, LWIP Stack.
we are using STM32CubeIDE 1.13.1 (Windows).Please suggest hardware setting and PHY IC Register setting.
2024-10-22 07:25 AM
The mostly used PHY on the STM32 evaluation boards is the LAN8742, so get the check driver for that one.
a) compare datasheets of LAN8742 and KSZ8091, mainly the MDIO registers and each bit.
b) copy and edit LAN8742 driver accordingly.
That shouldn't be too hard, unless the KSZ8091 is something very special. Or you already screwed it with the HW design... ;)
2024-10-22 07:49 AM
we already compared datasheet of LAN8742 and KSZ8091.MDIO register value are almost same for necessary registers.
Please suggest how to configure setting in .IOC file like CLOCK and Peripherals
what should be the memory address and PHY setting as it indicates it will work only when RAM is Pointing at 0x24000000(What does it mean).
2024-10-22 02:20 PM - edited 2024-10-22 02:20 PM
STM32H742 is a close relative of very popular STM32H743/753 so try to find and reuse example projects and tutorials for the latter MCUs. The internal SRAM and peripherals are same, only the flash is different IIRC.
2024-10-31 11:26 AM
Hi Pavel A
Can you please share the link of any use case.
2024-10-31 03:21 PM
2024-11-01 01:59 AM
Hi @Vista123
Please check the attached tutorial that may help you on the setting of .ioc file and configuration of the Peripherals.
2024-11-07 03:11 AM
Hi Imen,
Thanks for your response.
I followed the configuration steps as outlined in your PDF, but unfortunately, I’m unable to bring up the interface.
Attached, you’ll find the schematic of our PHY IC for your reference.
Could you kindly suggest any alternative methods to verify whether our hardware is functioning correctly.
Thank you for your assistance.
2024-11-07 04:51 AM
Hello @Vista123 ,
If you want to make sure that the hardware is working correctly you should try to read/write to and from the PHY registers if this operation is successful then normally you should be good to go.
this could be done using
Also, the PHY that you are using is not of such difference as pointed out by @LCE so using it should be a straightforward process here are some resources you could look at to inspire:
Solved: STM32H745 not works with KSZ8081RNA - STMicroelectronics Community
Exploring the KSZ8091RNA RMII ethernet PHY | Andys Workshop
Regards