cancel
Showing results for 
Search instead for 
Did you mean: 

Play_Audio using STM32F412ZT6

BandanaChaudhary
Associate

Dear Team,

I hope you’re doing well.

I am currently working on a project using the STM32F412ZGT6 board, and I need assistance to play audio via the built‑in codec. I have configured the I2S, I2C Pin and initiated some tests, but I am facing difficulties in getting proper audio output.

Could you please help me with:

  • Sample initialization code (HAL / low‑level) for I2S / codec setup

  • Recommended DMA / buffer handling strategy

  • Any tips or pitfalls specific to the STM32F412 series audio path

  • Example code or reference projects that use the built‑in codec

If needed, I can share my current code, configuration settings (clock, pin mappings, CubeMX file, etc.). Your guidance would be of great help in moving forward.

 

Thank you very much for your time and expertise.

1 REPLY 1
Ozone
Principal II

> I am currently working on a project using the STM32F412ZGT6 board, and I need assistance to play audio via the built‑in codec.

The F412 has no "built-in codec", you would need to name the board you are working with.

Many Cube examples are for specific boards, especially when it comes to such peripheral functions.
And your board might have been released before or during the transition time from SPL to Cube, like e.g. the F407 Discovery board.
The "legacy" SPL-based firmware + example packages for those boards are far more complete and stable than the Cube counterparts.