cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet Configuration using STM32H742VGT6 & KSZ8091RNBCA (PHY) in RMII

Vista123
Associate II

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. 

5 REPLIES 5
LCE
Principal

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... ;)

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).

Pavel A.
Evangelist III

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.

 

Hi Pavel A

Can you please share the link of any use case.

 

I don't have ready examples for the PHY. Example projects for LwIP are in the STM32CubeH7 package for STM32H743/753 boards here and here.