Max Genson
Max Genson
Many thanks for the fast reply! I'm glad you already have a solution ready. I'll try add the driver myself and post about the result soon.
I got the I2C configuration going now, the codec receives the same instructions as the ESP32 driver and acknowlegdes all of them. But the same problem as before remains: The...
A little question: Does it make a difference if the pac crate uses a similar (but probably different) chipset to access its peripherals? 
Okay, good to know! I forked the bsp crate and committed all my changes (https://github.com/backtail/daisy_bsp/commit/61b8844f4d2dda9c4218e3976d2d01d9932b6e4b). The SAI pin config seems to be right, I double checked with working C++ library....
Unfortuntely, I have not figured out how to setup the configuration for the WM8731 yet... I have used the same config setup as in the C++ libdaisy today. No audio...
I think I finally found the culprit! In the new revision the transmit and receive channels of the SAI are **reversed**. That explains why I couldn't read any data on...
Update: Codec is now working fine! :partying_face: Only issue now is that I haven't quite figured out how to config the DMA. I can send and receive audio via SAI1_CHX_DR,...
How exactly is the DMA configured? Is it possible to specifically assign stream 0 of DMA1 to SAI1 block B and stream 1 with block A? I haven't reversed the...
Okay, I did a deep dive into the rust HAL DMA configuration file and found this: https://github.com/stm32-rs/stm32h7xx-hal/blob/b874460e54c7b27e32495dab46984fa4fb82f51f/src/dma/dma.rs#L938-L941  Here, the SAI blocks can only be configured in one specific way....
I am working on it right now. Either this evening or tomorrow it will be up!