cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303VC clock setup with crystal on OSC_IN

jlag
Associate III

We have custom HW with an STM32F303VC processor.

There is a 12 MHz crystal with an 18pF in parallel wired to OSC_IN and OSC_OUT.

The power budget is basically unlimited so we would like to run the device as fast as possible with this configuration.

Peripherals used:

I2C

SPI

PWM on TIM1 and TIM3

TIM2 (SYS) Timer

USB

USART1

USART2

GPIO

ADC

The application functions correctly with the exception of the UART Baud rates being incorrect and the PWM frequencies are not what I expect. Auto baud detection is working for now and the PWM is connected to a duty cycle dependent device so this is not really a problem for now as well.

I would like to get the baud rate straightened out and get the clock settings optimized. STM32 Micro clock configuration is a weak area for me.

Current settings:

jlag_0-1716560475207.png

jlag_2-1716560572625.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Muhammed Güler
Senior III

MuhammedGler_0-1716562210005.png

enter the oscillator frequency, select HSE for PLL source, select PLLCLK for system clock source, and set HCLK to the maximum frequency supported by the processor

View solution in original post

1 REPLY 1
Muhammed Güler
Senior III

MuhammedGler_0-1716562210005.png

enter the oscillator frequency, select HSE for PLL source, select PLLCLK for system clock source, and set HCLK to the maximum frequency supported by the processor