Skip to main content
Alexpp
Associate
November 11, 2022
Question

STM32G4-based USB microphone

  • November 11, 2022
  • 3 replies
  • 1734 views

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
November 19, 2022
Alexpp
AlexppAuthor
Associate
November 21, 2022

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

Alexpp
AlexppAuthor
Associate
November 24, 2022

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