Skip to main content
JacquiG29
Associate
July 15, 2022
Question

How to make the correct configurations to develop a USB microphone with STM32L476?

  • July 15, 2022
  • 2 replies
  • 1194 views

I am trying to configure the STM32L476 as a USB Microphone, my input is an analogue microphone through the ADC. I configure the device as an Audio class, at first my computer found it as a speaker, so I search about it and find that I need to redefine some parameters at the usbd_audio.c and .h (The reference that I found was at Hackaday with the title STM32F4 USB microphone). Now my computer recognize it as a microphone, but I'm not being able to acquire the ADC data through the USB. Finally, I found this resource from ST AN5012 Application note but they don't mention any change at the files from usb class, I wonder if there is a place where I can found the source code and complete declaration of the libraries from these examples mention at the ST resource?

I will appreciate your help.

This topic has been closed for replies.

2 replies

Andrew Neil
Super User
July 15, 2022

"The reference that I found was at Hackaday with the title STM32F4 USB microphone"

please give a link

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
JacquiG29
JacquiG29Author
Associate
July 15, 2022