Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


I2S + DMA

Hello!

I’m trying to output a sine wave on my CS4344 DAC using I2S and DMA but it’s not going well...

First step was to output the correct clocks ie LRCLK = 44.1kHz and MCLK = 256 * LRCLK = 11.289MHz.
I tried several PLLI2S set ups and I never get exactly the right values. The closest I got was : MCLK = 11.36 MHz and LRCLK = 44.943 kHz (that might also be because my old oscilloscope isn’t so precise).

I figured it was good enough and wrote the DMA transfer part. I just get some kind og fluctuating pulse signal on the output of my DAC...
Could someone help me figuring out if the problem comes from my code or from the hardware? To be honest I’m really lost here : every piece of code that I find online is different from the other and there’s not much resource for a beginner to start with...

You’ll find attached my main.c and my STM32F4xx_hal_msp.c.

I hope someone here can make it a bit clearer for me, it’s all mixed up in my head!
Thanks a lot :-)

Nevermind, it was a hardware problem... Now it does work.

Hi,
Can I have full project? CubeMx+Generated.
I want to see how you doing clock’s settings in Cube.
Thank you.


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs