Skip to content

Conversation

@nandojve
Copy link
Member

The current selected start-up time takes 8 seconds to initialize. When xosc32 is used as main clock reference it blocks the whole initializarion of the system by that amount of time. This patch relax that condition setting the initialization time to 62ms.

Fixes #79949

The current selected start-up time takes 8 seconds to initialize.
When xosc32 is used as main clock reference it blocks the whole
initializarion of the system by that amount of time. This patch
relax that condition setting the initialization time to 62ms.

Fixes zephyrproject-rtos#79949

Signed-off-by: Gerson Fernando Budke <[email protected]>
@nandojve nandojve self-assigned this Oct 16, 2024
@nandojve nandojve added the size: XS A PR changing only a single line of code label Oct 16, 2024
@zephyrbot zephyrbot added the platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) label Oct 16, 2024
@nandojve nandojve added this to the v4.0.0 milestone Oct 16, 2024
OSC32KCTRL->XOSC32K.reg = OSC32KCTRL_XOSC32K_ENABLE | OSC32KCTRL_XOSC32K_XTALEN
| OSC32KCTRL_XOSC32K_EN32K | OSC32KCTRL_XOSC32K_RUNSTDBY
| OSC32KCTRL_XOSC32K_STARTUP(6) | OSC32KCTRL_XOSC32K_CGM_XT;
| OSC32KCTRL_XOSC32K_STARTUP(0) | OSC32KCTRL_XOSC32K_CGM_XT;
Copy link
Contributor

Choose a reason for hiding this comment

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

Alternative is to add a Kconfig option for it.

@dleach02 dleach02 merged commit 6a17999 into zephyrproject-rtos:main Oct 25, 2024
@nandojve nandojve deleted the sam0/speed_up_initialization_xosc32 branch January 14, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Microchip SAM Microchip SAM Platform (formerly Atmel SAM) size: XS A PR changing only a single line of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

soc: samd5x: xosc32 initialization - 8 seconds start-up time

5 participants