cancel
Showing results for 
Search instead for 
Did you mean: 

I2S-DAC - STM32NUCLEO - F410RB

AMS12345
Associate II

Is there any example code for I2S to DAC using DMA for generating audios. Will it suitable to generate using wav data or pcm samples to generate audio using this method in this specific controller.

2 REPLIES 2
AScha.3
Chief II

>example code for I2S to DAC using DMA for generating audios.

...i dont know. But its only few lines to write - need example for this ?

If using Cube/HAL , the setup DMA -> I2S is done , then only start the dma -- thats all.

here on F411 :

fresult = HAL_I2S_Transmit_DMA(&hi2s5, (uint16_t *) playbuf , (sizeof(playbuf))/2);	// DAC play-loop start

 

>Will it suitable to generate using wav data or pcm samples to generate audio using this method in this specific controller.

I made audio player even with F401 - so : yes, no problem.

If you feel a post has answered your question, please click "Accept as Solution".

@AScha.3 i think the above line help me. but is there possible to get example code? actually i need in nucleof410rb controller.