Skip to main content
antonius
Associate III
April 7, 2019
Question

HSI clock and baudrate ?

  • April 7, 2019
  • 29 replies
  • 3658 views

Dear Members,

I changed my clock from MSI to HSI but my SPI and UART baudrate becoming wrong,

What do I miss here ?

thanks

This topic has been closed for replies.

29 replies

S.Ma
Principal
April 8, 2019

Sometime it's easier to check on the datasheet alternate function table.

Anyway only one alternate "output" can be activated (it's a mux) at anytime.

Do check the GPIO registers in debug mode HW register view.

Check on GPIO MODER and AF registers for this pin.

antonius
antoniusAuthor
Associate III
April 9, 2019

On 32MHz, on UART1, I still get the same issue ??

antonius
antoniusAuthor
Associate III
April 9, 2019

which one is related with UART3 ? APB1 or APB2 ?

antonius
antoniusAuthor
Associate III
April 9, 2019

probably External crystal may help ?

antonius
antoniusAuthor
Associate III
April 9, 2019

USART3 register when 32MHz0690X000008A6AlQAK.jpg

antonius
antoniusAuthor
Associate III
April 9, 2019

Core=2097152, 2 MHz

HCLK=2097152

APB1=2097152

APB2=2097152