Skip to main content
Explorer II
September 27, 2024
Question

I2S-DAC - STM32NUCLEO - F410RB

  • September 27, 2024
  • 1 reply
  • 703 views

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.

    This topic has been closed for replies.

    1 reply

    Super User
    September 27, 2024

    >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.

    AMS12345Author
    Explorer II
    September 27, 2024

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