2026-02-08 12:05 AM
Hi team,
I am working on the STM32U585I-IOT02A board and trying to implement USB dual-role functionality (Host + Device).
My goal is:
USB Host: MSC class (to read firmware from a USB flash drive)
USB Device: CDC class (for communication with a PC)
I have enabled both the USB Host stack and USB Device stack in CubeMX, but I am unable to get the dual-role setup working reliably.
My main objective is to upgrade firmware using a USB flash drive (MSC Host) while still supporting CDC Device communication.
I would like to know:
Does STM32U5 support USB dual-role operation (Host + Device) simultaneously or via role switching?
Is there any example project or reference implementation for USB dual-role on STM32U5?
Are there recommended approaches for implementing firmware upgrade via USB MSC Host on this board?
Any guidance or example projects would be very helpful.
Thank you.