Skip to main content
Visitor II
June 8, 2022
Question

Basic with stm32h7 and wm8994 audio

  • June 8, 2022
  • 3 replies
  • 2271 views

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.

    This topic has been closed for replies.

    3 replies

    Super User
    June 8, 2022

    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

    ADobr.1Author
    Visitor II
    June 9, 2022

    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.

    Super User
    June 9, 2022

    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