Skip to main content
IAgui
Associate III
November 20, 2021
Solved

STM32HT43 Nucleo 144

  • November 20, 2021
  • 7 replies
  • 1684 views

Hello All,

I have an intresting issue that came up. But I am not sure if I understand it. In the clock configurator, I gave the usart mux a 100Mhz clock for the uarts and set up the baud rate for 115200K. Once I started sending data, I noticed that the baud rate was off. I went back and gave the clocking mux 64mhz, and that seemed to fix that issue. I want to make sure I understand why this before I move forward. Any advice would be greatly appreciated.

This topic has been closed for replies.
Best answer by Tesla DeLorean

Check the clock signal on the board as built, pretty sure it clocks at 8 MHz from the ST-LINK/V2-1

7 replies

Tesla DeLorean
Guru
November 20, 2021

>>STM32HT43 Nucleo 144

?? WHAT?

You mean an STM32H743ZI2 board ? The ZI2 board has a slightly off-frequency HSE clock, the ST-LINK/V3 is 8.33 MHz, not 8 MHz of the older ZI board

Check that HSE_VALUE is consistent with the source clock.

The 64 MHz HSI clock is likely closer to nominal.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
IAgui
IAguiAuthor
Associate III
November 20, 2021

oops STM32H743ZI Nucleo 144 typo, sorry. The schematic is saying the HSE input clock is 25 MHz for that board. Should I measure the 25 MHz clock? Getting a bit concerned as I am getting ready to work with CAN FD. I am using PLL1Q for that which is derived from the HSE clock.

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
November 20, 2021

Check the clock signal on the board as built, pretty sure it clocks at 8 MHz from the ST-LINK/V2-1

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Pavel A.
November 20, 2021

When you update the ST-LINK firmware with a recent version, there will be two options for the clock to the MCU: 8.33... (HSE/3) and 8.0 (HSI/2 of 'F7)

IAgui
IAguiAuthor
Associate III
November 20, 2021

Please forgive me as I am confused about the stlink clock and the HSE clock on the MCU. They are two different devices. How would this affect the baud rate on the MCU?

Tesla DeLorean
Guru
November 20, 2021

To save parts the on-board ST-LINK can provide a crystal based clock source to the target MCU

Review schematic

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Pavel A.
November 20, 2021

The ST-LINK MCU on the Nucleo board (STM32F7) has a 25 MHz crystal connected to its HSE. It's MCO goes to the target MCU's HSE in "bypass" (single-ended) mode. Several clocks can be muxed to the MCO, with programable divisor.