2026-01-16 9:20 AM - edited 2026-01-16 9:20 AM
Hello,
I'm working with the STM32H7S7L8-DK and i want to use both USB HS and FS in device mode but it seems in cube mx that i'm unable to enable both IRQ
If i enable the HS one the FS one isn't generated and same fort the other way
Is it a bug and how manage this to get it work?
Thanks
2026-01-16 10:56 AM
You asked this previously:
STM32H7S7L8 dual USB - STMicroelectronics Community
The answer is still the same:
CubeMX isn't set up to be able to generate a dual-usb device. The hardware supports it, but you will need to write the code yourself rather than relying on CubeMX generated code.
Perhaps generate one project for each USB device and integrate those projects together.
2026-01-19 3:07 AM
Hi @Hamady
I assume STM32 libraries (including HAL) used for USB FS and HS support independent operation of the two ports as device. However, CubeMX is limited when you enable both interrupts.
An internal ticket to CubeMX team to provide details about this limitation (225425)
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.
2026-01-19 3:13 AM
As TDK stated, CubeMX doesnt support it.
What could be an option is that you generate the code with each peripheral seperately and merge it then together, but i dont know if it works. You have to watch out for Pin assignments and potential conflicts.
2026-01-19 11:22 PM
@TDK @Vidar @FBL Thanks you all for your responses
I know that I already created a thread about a similar thing but watching phils lab video i tried to use Tiny USB instead of classic USB middleware. But being unable to enable IRQ because a other peripheral have IRQ enable is bug of Cube MX.
@FBL So i need to make a ticket or you already make it ?
Thanks