Skip to main content
Visitor II
November 29, 2023
Question

STM32H7 USB Audio as USB device class

  • November 29, 2023
  • 1 reply
  • 1319 views

Hi everyone,

in my latest PRJ, i had to run some arbitrary waveforms. The idea was to connect my STM32H7 to the host and configure it as USB audio device. As far as good...the problem is that i had to drive 60kSps (16Bit). So since i've read on the X-CUBE-USB-AUDIO description, that sampling rates up to 96kHz/24Bit are possible, but from the CUBE device configuration there is the limit to 48kHz.

Is this just a CubeMX thing and i can configure my USBD_AUDIO_FREQ to 60000?

Thank you!

    This topic has been closed for replies.

    1 reply

    Super User
    November 29, 2023

    Which interface, SPI/I2S, or SAI?

    How do you intend to clock it? What does RM say about the given peripheral's capabilities/clock generation?

    If you want to  rely on CubeMX, you just have to accept what it has to offer.

    JW

     

    FloK_MEDSAuthor
    Visitor II
    November 29, 2023

    2 PWM H-bridges will be updated with that. I'll try to possible use the USB-Audio driver in a non audio project ;)