cancel
Showing results for 
Search instead for 
Did you mean: 

USB OTG_HS Can endpoints 6 and beyond be used?

修新妻.1
Associate II

Is it possible to use endpoints after 6 in STM32F4 OTG_HS?

Endpoint 6 and later of OTG_HS_DAINTMSK register cannot be unmasked. Other OTG_HS registers have only up to 5, so I would like to know if only 0 to 5 can be used.

Thank you.

5 REPLIES 5
mohamed.ayed
ST Employee

Hi @修 新妻​ 

If max endpoint in MCU is 6, this value includes endpoint 0 . endpoint 0 is used for control transfers and 5 other endpoint for others transfers (bulk, iso ,interrupt).

修新妻.1
Associate II

Thank you for answering.

But what I want to know is, can 6 or 7 be used as the endpoint address number?

mohamed.ayed
ST Employee

Can you please specify what target device F4 are you using?

修新妻.1
Associate II

I plan to use STM32F417ZGT6.

mohamed.ayed
ST Employee

referring to datasheet of this product 2.2.31 Universal serial bus on-the-go high-speed (OTG_HS) 

max endpoint in OTG is 6 so (EP0 is used for control and 5 other endpoint (EP1 -> EP5) can be used for USB classes).