cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7S7L8 usb HS and FS IRQ

Hamady
Associate III

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 

4 REPLIES 4
TDK
Super User

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.

If you feel a post has answered your question, please click "Accept as Solution".
FBL
ST Employee

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.




Best regards,
FBL
Vidar
Associate II

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.

Hamady
Associate III

@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