Skip to main content
Graduate II
May 8, 2024
Solved

STM32H7x3 USB Microphone Driver

  • May 8, 2024
  • 2 replies
  • 1373 views

Hi,

I want to configure my device as a USB Microphone. However the cubemx generates code for USB speaker and the device is detected as STM32 Audio Class Speaker. Can anybody suggest a solution or Cube Example for USB Audio class with Microphone  codes/drivers. My devices are STM32H743, STM32H745, STM32H750, STM32H753, STM32H7A. I am using an analog microphone which is connected to ADC via preamp. Thank you

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

    Hi @ManishNair 

    You are right. To use a microphone on STM32H7, examples provided in cube firmware cover DFSDM peripheral to use MEMS microphone MP34DT01 and SAI peripheral to transmit audio PCM data to the WM8994 Codec driver. 

    But using USB class for audio examples provided are dedicated header /speaker OUT I guess since there is no other examples. Also, X-CUBE-MEMSMIC1 does not cover H7 products.

    I will forward your request to dedicated team.

    2 replies

    FBLAnswer
    Technical Moderator
    May 9, 2024

    Hi @ManishNair 

    You are right. To use a microphone on STM32H7, examples provided in cube firmware cover DFSDM peripheral to use MEMS microphone MP34DT01 and SAI peripheral to transmit audio PCM data to the WM8994 Codec driver. 

    But using USB class for audio examples provided are dedicated header /speaker OUT I guess since there is no other examples. Also, X-CUBE-MEMSMIC1 does not cover H7 products.

    I will forward your request to dedicated team.

    Visitor II
    May 29, 2025

    Hi ST engineers,

         Any new suggestions for this topics, if have any demo for USBX microphone, it is really good for us, thanks.

    Technical Moderator
    May 29, 2025

    Hi @DanielChen 

     

    I recommend you starting a new discussion to increase visibility and ensure adherence to Community guidelines.