cancel
Showing results for 
Search instead for 
Did you mean: 

USB Dual-Role (Host + Device) support on U585I-IOT02A — example for firmware upgrade

Vinay_Shirol
Visitor

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:

  1. Does STM32U5 support USB dual-role operation (Host + Device) simultaneously or via role switching?

  2. Is there any example project or reference implementation for USB dual-role on STM32U5?

  3. 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.

0 REPLIES 0