Skip to main content
MIman.1
Associate
Solved

STM32CubeIDE deos not creat middleware USB_Device for stm32H723 (Nucleo board)

Hi,

I am using stm32cubeIDE to use USB OTG/Dual_role but it does not generate the middleware! 

I do appreciate any help

Thanks

    This topic has been closed for replies.
    STTwo-32
    STTwo-32Best answer
    ST Technical Moderator

    Infact, the Nucleo board support only the USB OTG FS as mentionned on the DB3171. So, you can only configure the internal FS Phy which support only low speed and full speed (max 12MBits/s):

    stm2.PNG

    But, when using the STM32H723ZGT6 MCU, you can use the External Phy which can go to High speed (480 MBits/s). But you have to connect an external PHY device to the ULPI (which is not done on the nucleo board) as mentionned in the paragraph 3.43 of the DS13313:

    stm3.PNG

    Hope your questions are answered.

    Best Regards.

    STTwo-32 

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

    8 replies

    STTwo-32
    ST Technical Moderator

    Hello @MIman.1 

    Have you enabled any middleware on your CubeMX configuration. Enabling the USB OTG/Dual_role does not select any Middleware by default.

    Can you give more clarifications about your configurations.

    Best Regards.

    STTwo-32

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
    MIman.1
    MIman.1Author
    Associate

    Hi, 

    Many thanks for your quick response! No I have not enabled any middleware. I have been using many functionalites such UART, DAC, etc without enabling middleware. this is the first time I see it. How do I enable  middleware?

    BTW I am quite new to this.

    Thanks again.

    STTwo-32
    ST Technical Moderator

    If you want to use any middleware (lwip for example) you need to configure it using CubeMX middleware menu. On the next picture for example the freeRTOS middleware is enabled:

    14-hse.png

    Best Regards.

    STTwo-32 

    To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.