STM32U5 Series - Using Classic USB Device Middleware for Bare Metal Bootloader
Hello ST Community,
I'm developing a simple bootloader for the STM32U599 that requires USB serial communication (CDC class) for firmware updates.
Current Situation:
- STM32CubeMX only offers USBX middleware for STM32U5 series.
- We have an existing, working USB driver implementation based on the classic STM32 USB Device Library (CDC class)
Questions:
- Is it possible to use the classic STM32_USB_Device_Library with STM32U5 series instead of USBX?
- Can we port our existing USB CDC driver to STM32U5 without major architectural changes?
- Are there any STM32U5-specific examples using the classic USB Device middleware for bare metal applications?
Requirements:
- Bare metal implementation (no RTOS)
- USB CDC Virtual COM Port functionality
- Minimal flash/RAM footprint for bootloader use
- Compatibility with existing USB driver codebase
I've seen references to the STM32U5 Classic CoreMW package on GitHub, but wanted to confirm the best approach for our use case.
Any guidance or examples would be greatly appreciated!
Hardware: STM32U599 Tools: STM32CubeIDE, STM32CubeMX
Thanks in advance for your help!
