Skip to main content
Visitor
September 25, 2026
Question

Utilize USB Functionality in STM32F405RGT6 MCU

  • September 25, 2026
  • 1 reply
  • 18 views

Hello ST Team,

I want to use USB interface to update firmware of STM32F405RGT6 MCU.

We have verified it with USB DP and DM from external USB but now want to put in our board.

  1. Our board is also generating 5V and USB will also have 5V. What should I do so that it will not conflict or cause any issue?
  2. How to connect CC1 or CC2 pins of USB to our MCU so that we got to know connection is available from USB?
  3. If we want to do firmware update using USB then how our MCU will go in boot mode?

Please find screenshot of our schematic which we are working now:

 

1 reply

Pavel A.
September 25, 2026

So do you want your board to be host or device? From your description it looks like you want a self-powered device.

Then, which class: DFU, MSC (usb drive) or other?

>…. so that we got to know connection is available from USB?

A device knows that the connection is available by the host performing enumeration successfully.

> how our MCU will go in boot mode?

What do you mean here? do you want to use the built-in STM32 bootloader in USB mode? or jump to your own bootloader from your app?