Skip to main content
Graduate II
May 24, 2024
Solved

STM32F303VC clock setup with crystal on OSC_IN

  • May 24, 2024
  • 1 reply
  • 972 views

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

 

 

 

    This topic has been closed for replies.
    Best answer by Muhammed Güler

    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

    1 reply

    Graduate II
    May 24, 2024

    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