STM32CubeIDE deos not creat middleware USB_Device for stm32H723 (Nucleo board)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 8:10 AM
Hi,
I am using stm32cubeIDE to use USB OTG/Dual_role but it does not generate the middleware!
I do appreciate any help
Thanks
Solved! Go to Solution.
- Labels:
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 2:24 PM
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):
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:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 8:44 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 9:03 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 9:24 AM
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:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 9:43 AM
It does not let me to install the USB packages. is there any istruction on how to install it. thanks again
  
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 11:24 AM
You don't have to install it since it is a virtual pack that only represents what is provided by the selected MCU. You just have to select the mode Host only for the internal FS Phy of the USB_OTG_HS mode.
 
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 1:33 PM
Thanks a lot! It worked really well for transmitting and receiving data via device only.
One last question: I am limited to use 12 MBit/s with this config. As I see in the data sheet I should be able to use High speed upto 480 Mbit/sec.
I do appreciate if you make some comments on that too.
best
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-13 2:24 PM
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):
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:
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-14 4:58 AM
thanks a lot! I do appreciate your kind responses.
all the best
