Skip to main content
Visitor II
October 22, 2024
Question

Ethernet Configuration using STM32H742VGT6 & KSZ8091RNBCA (PHY) in RMII

  • October 22, 2024
  • 2 replies
  • 3077 views

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. 

    This topic has been closed for replies.

    2 replies

    Graduate II
    October 22, 2024

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

    Vista123Author
    Visitor II
    October 22, 2024

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

    Super User
    October 22, 2024

    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.

     

    Vista123Author
    Visitor II
    October 31, 2024

    Hi Pavel A

    Can you please share the link of any use case.

     
    Super User
    October 31, 2024

    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.