Skip to main content
Visitor II
March 31, 2021
Question

STM32H7, AZURE NetX and MII mode with KSZ8081

  • March 31, 2021
  • 6 replies
  • 2616 views

My processor board uses STM32H743V. The Ethernet chip is KSZ8081, MII mode. I also use AZURE RTOS and NetX. I tried using CubeMX to generate an application, but it always gives me some error when I compile the program. I tried different combinations, but no way to solve the problem. Does anyone know how to set up CubeMX and Azure NetX in MII mode? Does anyone have an example?

    This topic has been closed for replies.

    6 replies

    ST Employee
    April 2, 2021

    Hi @TVuck.1​ ,

    could you please share more details please.

    • what kind of errors are you facing?
    • how did you generate the project using MX (ideally share the .ioc file).
    • do you have a ready to use driver for the KSZ8081?

    regards

    Haithem.

    TVuck.1Author
    Visitor II
    April 2, 2021
    Hello Haithem I build simple test project.* IOC file is attached.* When I compiled it, project returned error. [image: image.png] In picture below is how I setup azure NetX interface. I tried different setting options, but the result is worse. [image: image.png] Best regards Teo Vuckovic pet, 2. tra 2021. u 08:08 ST Community napisao je:
    ST Employee
    April 2, 2021

    Hi @TVuck.1​ 

    the screenshots are not visible, or it is a problem in my browser?

    regards

    Haithem.

    TVuck.1Author
    Visitor II
    April 2, 2021
    Did you open the IOC file? I sent it to you as an attachment. pet, 2. tra 2021. u 12:26 ST Community napisao je:
    ST Employee
    April 3, 2021

    Hi @TVuck.1​ ,

    that's clear now :smiling_face_with_smiling_eyes: !

    IIUC, you want to use the NetXDuo Ethernet driver + KSZ8081 PHY interface

    If it is the case then you'll need to select the "Ethernet interface" component instead of the "custom interface" and keep "Ethernet Phy Interface/Custom_Phy"

    because the Ethernet Interface is Phy agnostic and it is common to all the STM32H7xx MCUs. The "Custom Inteface" is intended for writing a new driver for other interface than the Ethernet (WiFi, 3G modem...).

    regards

    haithem.

    TVuck.1Author
    Visitor II
    April 5, 2021

    Hi Haithem

    I changed the settings in the project, but I still can't compile the project. The project returns a lot of mistakes.

    Project settings:

    0693W000008yfwhQAA.png 

    List of errors:

    0693W000008yfwmQAA.png 

    For example. See line 1 in file nx_custom_driver.c:

    0693W000008yfwwQAA.png 

    I send you a complete project generated by eclipse export in attachment. Ioc file and source files. Please, try to compile this project on yours computer.

    Best regards

    Teo

    ST Employee
    April 5, 2021

    Hi,

    This is a corner case that we are investgating. In the project settings you'll need to uncheck the "Generate under root" option as shown below.0693W000008ygbaQAA.png 

    regards

    Haithem.

    TVuck.1Author
    Visitor II
    April 5, 2021

    It is impossible to unchek it. This part is blocked on my project. How to unblock this check box??

    0693W000008ygkrQAA.png