cancel
Showing results for 
Search instead for 
Did you mean: 

How to use usbhs + usbfs with stm32h743zit and azrtosh7 3.3.0

EBrun
Associate II

On an existing, working project developed with stm32cubeide 1.19.0 and the stm32h743zit developed with azrtosh7 3.3.0 that uses usbhs as the host for msc and midi devices, I need to add usbfs channel management to connect hid and midi, but I'm having significant problems configuring the system with stm32cubemx. I haven't found any examples online that support both USB channels. Has anyone tried using both USB channels and can give me some advice? During testing, I found that creating code from stm32cubemx 6.15.0 with both USB channels has many problems. I had to make some manual changes to the code created because it starts running, but only partially works.

2 REPLIES 2
FBL
ST Employee

Hi @EBrun 

You can use CubeMX with X-CUBE-AZRTOS-H7 to generate the necessary libraries once and then proceed with manual integration. However, there are no official examples or documentation for dual USB (USBHS + USBFS) with Azure RTOS on STM32H7, so manual adaptation is required if you pursue this configuration. Certainly examples here will help you get started/ 

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.


EBrun
Associate II

Thanks for your reply.

Your news isn't very encouraging. The path you indicated is what I took to get to this point. From my tests, it seems that the USBX stack wasn't designed for dual functions at the same time. To get something running, I made some changes to the "ux_system_initialize.c" file because the "_ux_system_initialize(...)" function is called twice, once for the usbhs port and the second for the usbfs port. I could continue to manually modify the following steps, but I'd lose the code when I recreate the sources from cubemx.