Skip to main content
AMelk.1
Associate II
May 26, 2023
Question

Does STM32U585 support USB Device Library for baremetal? Or is there only a library for ThreadX? If such - do ST plans implement a USB Device library (Middleware) for bare metal applications?

  • May 26, 2023
  • 3 replies
  • 3754 views

..

3 replies

ST Employee
May 30, 2023

HI @Community member​ 

Yes, STM32U585 support UBS Device libray for Baremetal but not for all classes. For the moment the list of supported classes is not yet available. Can you give me your use case so that I can check if it is supported or not.

Regards

DianeP

AMelk.1
AMelk.1Author
Associate II
May 30, 2023

Hello​ @Diane POMABIA​ 

Could you, please, help with it: provide some guide or instructions how to use it?

Because in Cube configuration in middlewares there is only USBX (based on threadx rtos) realization​

ST Employee
May 30, 2023

@Community member​ 

This is the link to access to baremetal example that we have delivered for STM32H7. You can adapt it for STM32U585:

x-cube-azrtos-h7/Projects/NUCLEO-H723ZG/Applications/USBX/Ux_Device_HID_Standalone at main · STMicroelectronics/x-cube-azrtos-h7 · GitHub

Regards

Diane

Associate
June 27, 2023

I suggest to use tinyusb library. I tried it with STM32U585 and everything works fine

Du1
Associate III
June 27, 2023

Thank you for the suggestion. I'll try it out. I tried adapting the USBX from the example above, but it keeps crashing at:

 

dcd -> ux_slave_dcd_function(dcd, UX_DCD_TASKS_RUN, UX_NULL);

 

In ux_device_stack_tasks_run.c line 87 of version 6.1.10

JLojo
Associate III
January 12, 2025

Same problem here!

@Du1, have you been able to fix it?

From the debug I've been able to carry out, the pointer to dcd -> ux_slave_dcd_function is NULL, but I've not been yet able to determine where it should be initialized...

A complete CubeMX  working example for Ux_Device_CDC_ACM_Standalone would greatly help!!!

Thanks
JyLo