How to change SYS_CLOCK_TICKS_PER_SEC from 1000 to 168000 at runtime? #98785
Unanswered
NamrataGagare-eaton
asked this question in
Q&A
Replies: 1 comment
-
|
Zephyr does not support modify system clock tick frequency at run time. It shall be certain value at compile stage and kernel timer is highly depended on it. You can use an alternative timer supported by your platform under |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Background Context:
I'm working on an application using STM32H743ZI and STM32U575ZI_Q with Zephyr RTOS v3.7.1 running at 168MHz. I need to dynamically change the system tick frequency from the default 1000 to 168000 at runtime.
Current Setup:
// prj.conf
CONFIG_SYS_CLOCK_TICKS_PER_SEC=1000
Desired Runtime Change:
// Runtime target
SYS_CLOCK_TICKS_PER_SEC = 168000
Primary Questions:
Is runtime tick frequency change supported?
SYS_CLOCK_TICKS_PER_SECbe modified after system initialization?Any experience, warnings, or alternative approaches would be greatly appreciated!
Thanks,
Namrata Gagare
Beta Was this translation helpful? Give feedback.
All reactions