2025-08-26 2:51 PM - last edited on 2025-09-09 7:30 AM by FBL
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.