Skip to main content
Associate II
June 18, 2025
Question

STM32U5A5 USB HS - Bare-Metal CDC Example

  • June 18, 2025
  • 3 replies
  • 620 views

Merhabalar,

https://community.st.com/t5/stm32-mcus-embedded-software/usb-hs-in-stm32u5a5/m-p/809596#M64236

I am writing to continue my question here.
When I checked the classic core middleware, I saw that it only supports the STM32U575 dev board.

I am using the STM32A5U5 development board. Can I run classic core middleware on STM32A5U5 development board? If so, how do I run it?

 

I need to work with bare-metal and CDC.

How do I structure the .ioc file?

Can you explain in detail?

Thank you for support.

 

3 replies

Technical Moderator
June 19, 2025

Hi @inancmert 

You have 2 possibilities. You can either use USBX without threadX or classic core middleware without any RTOS.

  1. You can start with the example provided here. Then remove :  use predefined buffer ux_device_byte_pool_buffer instead of dynamic allocation with tx_byte_allocate().
    #if defined ( __ICCARM__ )
    #pragma data_alignment=4
    #endif
    __ALIGN_BEGIN static UCHAR ux_device_byte_pool_buffer[UX_DEVICE_APP_MEM_POOL_SIZE] __ALIGN_END;​
    New knowledge base article about how to develop bare metal USBX application will be available within few weeks.
  2. Using classic core middleware: you can get started with the attached example
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
inancmertAuthor
Associate II
October 21, 2025

Hello again @FBL ,

You said that "New knowledge base article about how to develop bare metal USBX application will be available within few weeks." 
Has it been published or when will it be published? If so, can you provide a link?

Technical Moderator
October 24, 2025

Hi @inancmert 

Indeed it has been published, you can refer to this KB article for MSC using USBX standalone as reference and the project is provided here : /CKB-STM32-MSC-UX-Standalone-U5. If still having issues, don't hesitate to come back and provide details about your issues, or attach minimal project.

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