2025-11-19 5:03 AM - last edited on 2025-11-19 7:56 AM by Peter BENSCH
Hi everyone.
I am relatively new to working with STM32 devices, and I am currently attempting to design a USB microphone with an analog input using the Nucleo-L476RG development board in combination with the X-NUCLEO-CCA02M2 USB audio expansion board. To configure the system parameters in STM32CubeIDE, I followed the procedure described at the following reference: STM32F4 USB microphone | Details | Hackaday.io.
Using this configuration, the computer successfully recognizes the device as a USB microphone; however, no audio data is being transmitted.
I have attached the relevant configuration files—usbd_audio.c, usbd_audio.h, and main.c—in case someone might help identify any mistakes or oversights in my implementation. The analog signal is acquired through a single ADC channel using DMA with interrupt callbacks. The USB audio streaming is configured for a sampling rate of 48 kHz, and Timer 8 is used to trigger the ADC conversions.
Any assistance or guidance would be greatly appreciated.
Thank you very much.