configure the system clock

Thread Starter

MTech1

Joined Feb 15, 2023
161
I am trying to configure external clock(HSE) for STM32l152ccu6 using STM32CubeMX,

Code:
  *         The system Clock is configured as follow :
  *            System Clock source            = PLL (HSE)
  *            SYSCLK(Hz)                     = 72000000
  *            HCLK(Hz)                       = 72000000
  *            AHB Prescaler                  = 1
  *            APB1 Prescaler                 = 2
  *            APB2 Prescaler                 = 1
  *            HSE Frequency(Hz)              = 25000000
  *            HSE PREDIV1                    = 5
  *            HSE PREDIV2                    = 5
  *            PLL2MUL                        = 8
  *            Flash Latency(WS)              = 2
I am following link https://community.st.com/s/article/...-oscillator-and-low-speed-external-oscillator

1679295057293.png

I am not sure I am setting correct value any help please @MrChips
 
Top