cancel
Showing results for 
Search instead for 
Did you mean: 

USBX endpoint address error , UX_MAX_DEVICE_ENDPOINTS

ABasi.2
Associate III

Hi!

with cube IDE i'm trying to develop a USB device with 3 classes using  a STM32H523 with USBX and threadX.

If i select USB HID,USB MSC and USB ACM (virtual com port) the code is succesfully generated but if i close and reopen the .ioc GUI i have this message error:

the value of UX_MAX_DEVICE_ENDPOINTS can't be less then number of endpoints used.(used endpoints: 7). it will be set to 6.

what does it mean? is not possible to have 3 classes? or i have to change something in the endpoints and it can be done?

there is an example like this? or a guide to understande the endspoint manage

thank you

 

3 REPLIES 3
FBL
ST Employee

Hi @ABasi.2 

Would you attach ioc file to reproduce? Make sure to use latest version.

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.


ABasi.2
Associate III

Thankyou!

sure i can attach the ioc file

 

my cube ide is 1.17.0 

Mohamed_AYED
Associate III

Hi @ABasi.2 

in stm32h5 the max endpoint is 8 

In your project you are using 

  • ep 0 for controll (mondatory)
  • ep 1 for hid class 
  • ep 1 for storage in 
  • ep 2 for storage out
  • ep 3 for cdc acm ctl 
  • ep 4 for cdc acm in 
  • ep 5 for cdc acm out 

if you define this endpoints config the problem will dispparate in Mx

ensure that UX_DEVICE_BIDIRECTIONAL_ENDPOINT_SUPPORT is enbled 

  • ep 0 for controll 
  • ep 1 for hid
  • ep 2 for storage in
  • ep 2 for storage out
  • ep 3 for ctl
  • ep 4 for cdc acm in
  • ep 4 for cdc acm out 
  • total is 5 endpoints < max enpoints availble in this product