Skip to content

Commit

Permalink
board: nucleo_l152re: Revert "board: nucleo_l152re: Limit sysfreq to …
Browse files Browse the repository at this point in the history
…16MHz"

This reverts commit 3fba0cb.

Fixes #23762

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
  • Loading branch information
ABOSTM authored and nashif committed Apr 7, 2020
1 parent e2e74c0 commit 6aaad93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions boards/arm/nucleo_l152re/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ Other hardware features are not yet supported in this Zephyr port.
The default configuration can be found in the defconfig file:
``boards/arm/nucleo_l152re/nucleo_l152re_defconfig``

System Clock
============

Nucleo L152RE System Clock could be driven by internal or external oscillator,
as well as main PLL clock. It should theoretically support running at 32MHz,
but a bug (under investigation) limits operations to 16MHz.

Connections and IOs
===================

Expand Down
4 changes: 2 additions & 2 deletions boards/arm/nucleo_l152re/nucleo_l152re_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CONFIG_SOC_SERIES_STM32L1X=y
CONFIG_SOC_STM32L152XE=y
CONFIG_CORTEX_M_SYSTICK=y
# 32MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=16000000
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32000000

# enable uart driver
CONFIG_SERIAL=y
Expand All @@ -24,7 +24,7 @@ CONFIG_CLOCK_CONTROL=y
CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y
# Use HSI source
CONFIG_CLOCK_STM32_PLL_SRC_HSI=y
CONFIG_CLOCK_STM32_PLL_DIVISOR=4
CONFIG_CLOCK_STM32_PLL_DIVISOR=2
# produce 32Mhz clock at PLL output
CONFIG_CLOCK_STM32_PLL_MULTIPLIER=4
CONFIG_CLOCK_STM32_AHB_PRESCALER=1
Expand Down

0 comments on commit 6aaad93

Please sign in to comment.