Skip to main content
Visitor II
April 23, 2024
Question

Custom usb

  • April 23, 2024
  • 2 replies
  • 1141 views

Hi Team,

 

I'm using STM32H743 series controller.

I want to implement USB Base class on STM32H743. Unfortunately CubeMX will not support it.

Any example code which works on Base class- 00h, Sub class -00h and protocol -00h

    This topic has been closed for replies.

    2 replies

    Super User
    April 23, 2024

    Class 00h, sub class 00h, protocol 00h in the device descriptor means that the actual class/subclass/protocol are defined in the Interface descriptor, or (more likely) the device is composite and has several functions, with their  own descriptors. ST USB library has "composite builder" for creating composite devices, and USBX has support for composite devices.

    Note: if by custom you mean the vendor specific class, it is not 00/00/00. Interface (USB function) with Class 00h, sub class 00h, protocol 00h is not valid.

     

     

    Technical Moderator
    April 23, 2024

    Hi @RJ1 

    You can get information from interface descriptors after it has been enumerated by host. But there is no example dedicated to base class.