cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A5 USB HS - Bare-Metal CDC Example

inancmert
Associate II

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.

 
1 REPLY 1
FBL
ST Employee

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.