Skip to main content
Visitor II
September 26, 2024
Solved

STM32G0B1RCT6 USB_DRD_FS Doubt

  • September 26, 2024
  • 1 reply
  • 837 views

hi,
Using STM32G0B0CET6
USB_DRD_FS---Host_Only_FS,
USB_HOST---Mass Storage Host Class,
FATFS---USB Disk

USB Interrupt---Enable.

 Screenshot 2024-09-26 145107.pngMy requirement: i just want to create  and write the file to usb_host.c and whenever i pluged the usb, the file automatically copied from microcontroller to pendrive. i did, its working fine but i have a doubt,

 Everything seems clear, but why should i configure to  Drive_VBUS_FS option.

On my board, I decided to provide 5V to VBUS directly . This makes me wonder if VBUS sensing is possible at all?

And for the Drive_VBUS_FS, I don't want to drive VBUS, but there is no such option available except for keeping the selection at Undefined, which seems to be an invalid state.

 

we don't have a additional pin of Drive_VBUS_FS, what should i do?

 

    This topic has been closed for replies.
    Best answer by FBL

    Hi @Berlin-raj123 

    You referenced two different part numbers STM32G0B1RCT6 and STM32G0B0CET6.

    VBUS sensing are mandatory for self-powered devices only. In your case, you can simply select in the configuration NO_VBUS_DRIVE is needed

    FBL_0-1727452520021.png

    1 reply

    FBLAnswer
    Technical Moderator
    September 27, 2024

    Hi @Berlin-raj123 

    You referenced two different part numbers STM32G0B1RCT6 and STM32G0B0CET6.

    VBUS sensing are mandatory for self-powered devices only. In your case, you can simply select in the configuration NO_VBUS_DRIVE is needed

    FBL_0-1727452520021.png

    Visitor II
    October 1, 2024

    sorry for my mistakes. i used STM32G0B1RCT6