STM32H5 How to integrate NetXDuo with custom PHY

Kacper Dalach 20 Reputation points
2023-06-28T09:38:29.43+00:00

Hello
I have the STM32H563 MCU on a custom board with KSZ8081RNB ethernet PHY. It's my first time using NetXDuo so I'm configuring it mainly through ST's CubeMX code generation software. I was able to configure the stack and write a custom PHY driver that properly reads link state and can properly communicate with the PHY through RMII.
After connection the PHY links up properly and passes packets to MCU.
However the ethernet ISR is not called.

This got me thinking - does NetXDuo alter interrupt settings of my STM32 during run time? Do i have to define some callbacks when i write my own PHY driver? I couldn't find any information on writing PHY drivers from NetXDuo and I'm kinda lost.

Some additional info about my setup:

  • STM32H5 is clocked by 25MHz clock that is multiplied to 75 MHz
  • I use ARM trust zone but everything is running in the non secure context
  • ICACHE is enabled (1-way) and DCACHE is disabled
Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
331 questions
{count} votes

Accepted answer
  1. Bo Chen 596 Reputation points Microsoft Employee
    2023-06-29T05:46:44.1933333+00:00

    Hi @Kacper Dalach Thanks for reaching out to us. Looks the issue is for the driver. I would suggest you asking for help from ST. Thanks. https://community.st.com/s/topic/0TO3W0000004ZG8WAM/azurertos


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.