cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with DAC and DMA and CLOCK - STM32H723ZG

TOsso.1
Associate II

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

5 REPLIES 5
AScha.3
Super User

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.

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

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

  

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

 

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

Hey

H723

I will try.

and you have an idea why is not work with HSI?

Hi,

an idea why is not work with HSI?

No, it should work also. Maybe it will, if you reduce the strange 608M and try at first with reduced clock, lets say : all 50% lower.

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