Skip to main content
Graduate
August 30, 2025
Question

Problem with DAC and DMA and CLOCK - STM32H723ZG

  • August 30, 2025
  • 1 reply
  • 341 views

Hey

I work with the eval-board Nucleo h743ZI. I implemented sine wave playback using the DAC and DMA, and everything worked very well.
After that, I designed my own board with the same microcontroller and added an external 25 MHz crystal.
I couldn’t get the 25 MHz clock to work.

This is the cofiguration:

TOsso1_0-1756573124071.png

I try to debug my code and I saw that I get error at 

SystemClock_Config:
.
.
.

if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)

{

Error_Handler();

}

 

 

here:

TOsso1_1-1756573306250.png

 

I switched to using the internal clock of the MCU to work with HSI.
The code runs normally, but I don’t see any signal at the DAC output.
This is the configuration:

TOsso1_2-1756573448891.png



Thank you very much

    This topic has been closed for replies.

    1 reply

    Super User
    August 30, 2025

    Hi,

    >I couldn’t get the 25 MHz clock to work.

    You set the crystal input to "bypass" - you use really a crystal or an oscillator? (this works not for plain crystal.)

    For crystal set it to ...crystal ..resonator.

    Maybe - show your circuit, to see more.

    +

    Cube not complains about this 608 M setting ?

    AScha3_0-1756574117293.png

    Try lowering all speeds first, just to be sure, its not something with too high clks.

     

    +

    btw

    On my H743 board i use an oscillator, 16MHz ; never got a problem with the clock.

    TOsso.1Author
    Graduate
    August 30, 2025

    Hey

    The cube not complains about the 608.

    I attach what I work with.

    and what about work with the internal clock? HSI? why is not work also

    1000291643.jpg

    1000291644.jpg

    Super User
    August 31, 2025

    Hi,

    so you have a plain crystal -> set in Cube :

    AScha3_0-1756633748817.png

    +

    your cer.caps at the crystal are way to big , for 25M : try 6pF or ... 10pF .

    for 25M crystal typ. : 2x 5.6 pF (on nucleo board MB1363 , dnf)

    AScha3_1-1756634097607.png

    +

    What you have now ? H743 or H723 ...?