NUCLEO-U5A5ZJ-Q HSE clock configuration
Closed this issue · 5 comments
Caution
The Issues are strictly limited for the reporting of problem encountered with the software provided in this project.
For any other problem related to the STM32 product, the performance, the hardware characteristics and boards, the tools the environment in general, please post your report to the ST Community in the STM32 MCUs dedicated page.
Describe the set-up
STM32CubeMX Version 6.12.1
STM32Cube_FW_U5_V1.6.0
Start a new project from the ST Board Selector and select NUCLEO-U5A5ZJ-Q.
The default configuration for HSE is Bypass and 8Mhz. This will not work on the U5A5 board as the board is configured with a 16Mhz Crystal.
How to reproduce the bug (skip if none)
- Indicate the global behavior of your application project
- List the modules that you suspect to be the cause of the problem (Drivers, BSP, MW...)
- Describe the use case that generates the problem
- How we can reproduce the problem
Additional context
If you have a first analysis, an enhancement, a fix or a patch, thank you to share your proposal.
Screenshots
If applicable, add screenshots to help explain your problem.
Hello @builder60,
Thank you for the report.
Regarding the issue, and based the RM0456 page 484, when choosing the External source HSE (Bypass), in this mode an external source must be provided to the OSC_IN pin while the OSC_OUT pin can be used a GPIO.
In the case of NUCLEO-U5A5ZJ-Q board and according to the UM2861, page 27: The MCO output of the STLINK-V3E MCU is used as an input clock. The frequency might be changed during the ST-LINK firmware upgrade (stsw-link007). It is fixed at 8 MHz by default and connected to PH0 OSC_IN of the STM32 microcontroller.
That's why when you start a new project with MX, the default configuration for HSE (Bypass) is 8Mhz
. Remember that you can choose the HSE crystal as clock source if you want.
With regards,
The NUCLEO-U5A5ZJ-Q that I purchased was configured by ST as in the paragraph above the paragraph that you quoted:
HSE: on-board oscillator crystal (X3) (configuration depends on the embedded STM32U5 series
microcontroller)
To help select the crystal and its associated capacitors (C59, C60), refer to the application note Oscillator design guide for STM8AF/AL/S, STM32 MCUs and MPUs (AN2867).
As an example, this crystal might have the following characteristics: 16 MHz, 8 pF, and 20 ppm.
In this case, configure the board as follows:
• SB47 and SB49 OFF. PH0 and PH1 are not connected to CN11 as I/Os.
• SB48 (MCO) OFF
• SB4 and SB5 ON are connected to the external HSE.
UM2861 is not correct about the default clock source.
Hello @builder60,
Indeed, the SB4 and SB5 is ON.
I will check with our team about the configuration within Cube MX.
Thank you again.
ST Internal Reference: 192857
Hello @builder60,
Regarding the issue, the fix will be included in the future release v6.13.0 of Cube MX. Please allow me to close the thread.
Thank you for your comprehension.
With regards,