Skip to main content
Visitor II
August 26, 2025
Question

USB Microphone Audio Class Driver

  • August 26, 2025
  • 2 replies
  • 295 views

I am having the worst time trying to get ANY MCU on the planet to work right for this project. I want to build an i2s-USB bridge essentially. 

I can get the clocks right, I can get data from i2s (WM8782)➞DMA(Circular)➞|WALL|

The only provided examples for any device that I have found that actually work have been DAC implementations. That's neat and all. But I want to make an acquisition of audio and stream it to my computer.


I wish to make an Audio Interface.

I have tried so hard, so many times, and failed so miserably every time.

 

A few times I have actually managed to rewrite the USB Descriptors well enough to get some remnants of wrecked audio stream to my computer, a sign of life at least. But when I had managed that, it was with a simpler device (STM32F411CEU6) and I hadn't gotten the clocks right, I was unaware at the time of the depth of complexity.


I bought an STM32H723ZTG6, it checked all of the proverbial boxes. SAI, fast clocks, provided HSI48 just for USB, the works. This time, I made sure to get the clocks right (ha! no, I messed that up again. I still am never confident on the clocks. I can get them set just where I wish for them to be, but if my understanding of what I need is wrong, it doesn't matter.)

I guess I'm hoping for a saving grace here. I am tired of this project. It has consumed my whole existence for the better part of the last 2 months. I know I could have just bought an Audio Interface 3x over at this point, but I also feel that this will haunt me until I solve it, having put in so much of my life already to the task.

Any advice would be welcome, example code, extremely welcome. If anyone wants to take the time to look at my code and hold my hand, I'd be very grateful.

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    September 26, 2025

    Hi @pszsh 

    It seems the issue is not related to clock. You can the examples provided here or here.
    If still having issues, you will need to provide more precise details to help you. You will need to capture and analyze the USB traffic.

    Super User
    September 26, 2025

    Maybe I could help you,

    I made an audio player, plays from SD card, USB or Web radio. On H743.

    But not now so much, as I am sitting in train to Hamburg, with company.

    So just tell me, what you want in the end: some tests, something to learn, or a precision high quality audio recording....?