Skip to content

Conversation

mathieuchopstm
Copy link
Contributor

Selecting LPTIM timer source through Kconfig is marked as deprecated since Zephyr 3.2

Note that the underlying symbols have not been removed but they are now promptless; attempting to set them using command line or a configuration file will result in a build error:

error: STM32_LPTIM_CLOCK_LSI (defined at drivers/timer/Kconfig.stm32_lptim:25) is assigned in a configuration file, but is not directly user-configurable (has no prompt).
It gets its value indirectly from other symbols.
See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_STM32_LPTIM_CLOCK_LSI and/or look up STM32_LPTIM_CLOCK_LSI in the menuconfig/guiconfig interface.
The Application Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.

A broader rework will be required to drop these symbols entirely and is out of scope of this PR.

Remove the possibility to configure the LPTIM timer clock source
through Kconfig. The deprecation warning was added 3 years ago in
Zephyr 3.2 by commit bbac316; more
than enough time has elapsed for this option to be removed.

Signed-off-by: Mathieu Choplain <[email protected]>
Add notice about removal of LPTIM clock source configuration through
Kconfig in the Zephyr 4.3 release notes.

Signed-off-by: Mathieu Choplain <[email protected]>
Copy link

@mathieuchopstm mathieuchopstm added this to the v4.3.0 milestone Oct 14, 2025
Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aside the typo, LGTM.

using devicetree should be preferred.

# Invisible symbols exposing the selected LPTIM source to Kconfig
# NOTE: the values 2/3 correspond too STM32_SRC_LSE/STM32_SRC_LSI
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo:

Suggested change
# NOTE: the values 2/3 correspond too STM32_SRC_LSE/STM32_SRC_LSI
# NOTE: the values 2/3 correspond to STM32_SRC_LSE/STM32_SRC_LSI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards/SoCs area: Timer Timer platform: STM32 ST Micro STM32 Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants