cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure HSE on Nucleo U5A5ZJ

liquidloop
Associate

Hi Team,

I am trying to use the HSE for Nucleo U5A5ZJ but I have some confusion. The document says ..

"HSE is the 16 MHz oscillator for the STM32 microcontroller. This clock is available depending on the target
STM32 series microcontroller used on the Nucleo-144 board."

So does this board have the external oscillator or not?

In the clock configuration diagram, it defaults the Input frequency to 8MHz. Why?

Even if i use this 8MHz HSE deploying the code to the board results in messages like "Target is not responding, retrying...".

 

Can you please give some guidance.

Thanks.
Sandeep

1 ACCEPTED SOLUTION

Accepted Solutions
Amel NASRI
ST Employee

Hi @liquidloop ,

Based on the same user manual UM2861, to use the on-board oscillator crystal (X3) as the HSE source, configure the board as follows::

AmelNASRI_0-1755700247466.png

That said, the sentence from this user manual mentioned in your initial post is misleading. An internal ticket has been submitted to provide precise information about the HSE crystal (ticket #216017).

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

5 REPLIES 5
TDK
Super User

Does your board have a crystal in the X3 position, or is it empty?

TDK_0-1755265362305.png

 

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

At  

https://www.st.com/en/evaluation-tools/nucleo-u5a5zj-q.html#cad-resources 

is the schematics; identify which one is the oscillator; then at the same page in Bill of Materials, try to find that oscillator.

JW

For the Nucleo U5A5ZJ the HSE is most likely coming from the ST-LINK/V3 STM32F723 chip

The output speed on the MCO is configurable. Pretty sure that's never 16 MHz

https://community.st.com/t5/stm32-mcus/how-to-use-stlink-v3-mco-output-on-nucleo-boards-as-a-precise/ta-p/723361

https://www.st.com/resource/en/schematic_pack/mb1549-u5a5ziq-c04-schematic.pdf

X3 can be an NX2016SA 16 MHz if placed, and solder bridges made and capacitors added.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

liquidloop_0-1755315262816.png

Thanks TDK. I do have a crystal here and it says 16 so likely 16MHz. However when we start a new project for STM32U5A5 and disable the USB_OTG, then the default value is 8 for input frequency.

liquidloop_1-1755315392087.png


I have updated that to 16 and configured prescaler to get 160MHz sysclk. It looks correct on the clock configuration.

liquidloop_2-1755315484535.png


But while flashing it goes "Target is not responding, retrying...". I also check that the FLASH_LATENCY_4 is set to 4. Hope I am not missing something.

Amel NASRI
ST Employee

Hi @liquidloop ,

Based on the same user manual UM2861, to use the on-board oscillator crystal (X3) as the HSE source, configure the board as follows::

AmelNASRI_0-1755700247466.png

That said, the sentence from this user manual mentioned in your initial post is misleading. An internal ticket has been submitted to provide precise information about the HSE crystal (ticket #216017).

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.