Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hw/mcu/stm32f1: Disable SysTick when RTC is selected as tick source #3248

Merged

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Jun 12, 2024

When tick was provided by RTC instead of SysTick (default) and MCUboot used SysTick during boot, SysTick was never turned off and was running in application code.
This resulted in two interrupts advancing mynewt OS tick so clock was running too fast.

Now os_tick_init() from RTC code disables SysTick that could be started in bootloader

When tick was provided by RTC instead of SysTick (default)
and MCUboot used SysTick during boot, SysTick was never turned off
and was running in application code.
This resulted in two interrupts advancing mynewt OS tick so clock
was running too fast.

Now os_tick_init() from RTC code disables SysTick that could be
started in bootloader

Signed-off-by: Jerzy Kasenberg <[email protected]>
@kasjer kasjer added Trivial Trivial fix BugFix Bug fix STM STM32 related labels Jun 12, 2024
@kasjer kasjer merged commit 6d2f840 into apache:master Jun 17, 2024
17 checks passed
@kasjer kasjer deleted the kasjer/stm32f1-fix-double-systick-source branch June 17, 2024 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugFix Bug fix STM STM32 related Trivial Trivial fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants