Skip to content

Add SysTick counter reset in Cortex-M ports#560

Closed
hefanbo wants to merge 1 commit into
eclipse-threadx:masterfrom
hefanbo:fix/cortex-m-random-startup-delay
Closed

Add SysTick counter reset in Cortex-M ports#560
hefanbo wants to merge 1 commit into
eclipse-threadx:masterfrom
hefanbo:fix/cortex-m-random-startup-delay

Conversation

@hefanbo

@hefanbo hefanbo commented Jun 24, 2026

Copy link
Copy Markdown

The SysTick counter value (NVIC offset 0x18) is indeterminate after reset. Without clearing it prior to enabling the timer, the first tick interval becomes unpredictable.

PR checklist

  • Updated function header with a short description and version number
  • Added test case for bug fix or new feature
  • [x ] Validated on real hardware

The SysTick counter value (NVIC offset 0x18) is indeterminate after
reset. Without clearing it prior to enabling the timer, the first
tick interval becomes unpredictable.
@hefanbo

hefanbo commented Jun 24, 2026

Copy link
Copy Markdown
Author

Tested on Cortex-M4 with gcc

@hefanbo

hefanbo commented Jun 24, 2026

Copy link
Copy Markdown
Author

Commit message needs to be corrected

@hefanbo hefanbo closed this Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant