2024-05-24 07:25 AM
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:
Solved! Go to Solution.
2024-05-24 08:01 AM
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
2024-05-24 08:01 AM
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