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/stm32: Disable SysTick when RTC is selected as tick source #3287

Merged
merged 1 commit into from
Jul 10, 2024

Commits on Jul 6, 2024

  1. hw/mcu/stm32: Disable SysTick when RTC is selected as tick source

    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.
    Same code was already applied to STM32F1 that has different
    RTC block.
    
    Signed-off-by: Jerzy Kasenberg <[email protected]>
    kasjer committed Jul 6, 2024
    Configuration menu
    Copy the full SHA
    83bb995 View commit details
    Browse the repository at this point in the history