Skip to main content
Alexpp
Associate
Nov 11, 2022 10:41 AM UTC
Question

STM32G4-based USB microphone

Tried a lot of stuff, including STM32CubeExpansion_MEMSMIC1_V5.7.0, STM32CubeExpansion_USBAudioStreaming_V1.0.0, STM32CubeFunctionPack_SMARTMIC1_V2.3.0, porting existing apps to STM32G4 with no success.

The USB device gets appeared in Windows OS in ~5s after the connection, and gets corrupted (driver error) in the next ~8s. I have not found any example project like "USB audio streaming", "USB microphone' etc. Is it possible? I have found out that the USB peripherals in STM32G4 and F4 are quite different, at least their PCD HAL drivers are.

This topic has been closed for replies.

3 replies

Piranha
Principal III
Nov 19, 2022 4:16 AM UTC
Alexpp
AlexppAuthor
Associate
Nov 21, 2022 6:51 AM UTC

Hi Piranha! Thank you indeed! Will try it out.

Alexpp
AlexppAuthor
Associate
Nov 24, 2022 12:55 PM UTC

Tried with no success. Tinyusb is an excellent library, but there are issues in the STM32G4 chips themselves, hence no working solution for now. The details are at https://github.com/hathach/tinyusb/issues/1249