2022-06-07 11:33 PM
I bought stm32h745i-disco. Im starting with development of stm32. �?´m familiar with pic32 development but I need use dsp functions of stm32h7. I can wotk with adc, timers .. and I learn how to use CubeMX for development. But now I have problem to use wm8994. Connect pins, is familiar, but I don't know how to set peripheral settings in SAI. In second how to set that wm8994 library for use. It is included in CubeMX or not?
Best for me is detail step by step tutorial for set wm8994 and how to use it. I can run example audio playback project from st but it has not pinout & configuration in CubeMX IDE. I lost some days without success.
2022-06-08 09:11 AM
You may check the STM32H7 firmware package which you also can find online: https://github.com/STMicroelectronics/STM32CubeH7/tree/master
There are example projects for several boards under Projects and board support packages (BSP) under Drivers which contain wrappers for audio etc..
hth
KnarfB
2022-06-08 11:33 PM
Thank you. \\i know and check these examples. But in project are not .ioc configuration file. I don't know how to set right parameter settings of SAI, I2C, Clocks when I try use wm8994 codec. I'm bored with lot of settings without any result. When I go and check source code of SAI_AudioPlayback, it didn't help me. I think it must be easy to set right connection to wm8994 and set workable audio input redirected to audio output like first test. But week is gone and no result. It's frustrating for me. One ioc file with right settings will help me.
2022-06-09 05:11 AM
Agreed, an .ioc would be helpful. But for the existing ST boards, all config is done in the BSP.
I had no issues using BSP_AUDIO_* functions on an F746 disco.
Stepping into the source code and looking at the registers may also be helpful.
hth
KnarfB