Skip to content

timers: large drift if hardware timer has a low resolution #53024

Answered by dleach02
jeppenodgaard asked this question in General
Discussion options

You must be logged in to vote

@jeppenodgaard, on your target application, you can return to using systick as the timer source. This behavior, or side affect, of changing timers is something to consider when making power tradeoffs. In the PR you referenced, the following comment is in the board DTS to give guidance to switch back if needed:

 /* Enable GPT for use as a hardware timer. This disables Cortex Systick.
  * to use systick, change this node from "gpt_hw_timer" to "systick"
  */
 &gpt_hw_timer {
	status = "okay";
 };

We will look at changing the default back to systick and have GPT used when enabling power management. In the meantime, I'm changing this report to a discussion thread.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jeppenodgaard
Comment options

jeppenodgaard Dec 14, 2022
Collaborator Author

Answer selected by jeppenodgaard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug area: Timer Timer platform: NXP NXP
2 participants
Converted from issue

This discussion was converted from issue #53010 on December 13, 2022 20:13.