Skip to main content
KMew
Senior III
January 19, 2023
Solved

STM32H7B3LIH6Q: Crystal Selection Impact on CubeMX Clock Configuration

  • January 19, 2023
  • 4 replies
  • 1977 views

Hello,

I am designing a custom board using the STM32H7B3LIH6Q, based on the STM32H7B3I-EVAL evaluation board. The crystal used on the evaluation board is 24 MHz, as seen from the schematic offered.

0693W00000Y8gYWQAZ.png 

Now, I am building my own board and noticed that the part number used for the oscillator is not available. However, there the datasheet says this one can be a range (4 - 50 MHz). See datasheet snippet below.

0693W00000Y8gYqQAJ.png 

My question is two fold:

  1. When they say "guaranteed by design" in the second note, does that mean that, if I use a crystal between 4-50 MHz, I can achieve the full 280 MHz clock frequency used by this MCU?
  2. Does choosing a crystal with a different frequency cause changes in the the CubeMX clock configuration?

This topic has been closed for replies.

4 replies

gbm
Principal
January 19, 2023

Just look at the Clock Configuration tab in CubeMX - this should answer your questions. If in doubt, read the Ref Manual section on RCC.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice
Technical Moderator
January 20, 2023

Hello @KMew​,

When selecting your crystal, be sure to follow the recommendations in the AN2867:

Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs - Application note

Imen

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
AScha.3
AScha.3Best answer
Super User
January 20, 2023
"If you feel a post has answered your question, please click ""Accept as Solution""."
KMew
KMewAuthor
Senior III
January 20, 2023

Hello AScha.3,

Thank you for the reply!

I read through this thread and it was very helpful! An oscillator does seem simpler for the application. I have two follow-up questions about them, just to make sure I understand:

1) What exactly is the "tristate" of the oscillator for the example you mentioned in your reply?

0693W00000Y8mQdQAJ.png 

2) I noticed you didn't use the 0.01 - 0.1 uF capacitor in your example, but the datasheet does mention one in Figure 2. I also noticed you added a 51 ohm resistor between output and the MCU. Is that necessary?

KMew
KMewAuthor
Senior III
January 20, 2023

Added the picture of your example schematic, for ease of reading.

0693W00000Y8mRHQAZ.png

AScha.3
Super User
January 20, 2023
  1. just to switch off the clock (maybe you want go low power and use cpu internal slow clock)
  2. is there !!! needs to be close to osc , i use 10uF ceramic 0805 ; (just on other part of drawing)
  3. 51 or 75 r is to prevent ringing or reflections of hi-speed signals (these osc. can be very fast and create strong ringing even on short tracks; osc needs to be close to cpu.

(i had a sometimes (!!) not working cpu, 48MHz osc. only 10mm distance; so strong ringing on this short line !

cut it, put 51 r in , and cpu working always perfect. )

"If you feel a post has answered your question, please click ""Accept as Solution""."
KMew
KMewAuthor
Senior III
January 20, 2023

Ahhh, I understand!

Thank you for explaining it Ascha! You have been most helpful :)