Any way of keeping timers running through a soft reboot/reset?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Any way of keeping timers running through a soft reboot/reset?

ソリューションへジャンプ
844件の閲覧回数
arnevaama
Contributor I

Hello, we've been working with the MK66FN2M0VLQ18 and we're looking for a way to keep the clocks running through a NVIC_SystemReset().


We're storing a clock/time value in the LTMR64H/LTMR64L registers using . Through some debugging we've determined that those registers are wiped upon rebooting.

Obviously a hard power cycle will clear them no matter what, but we're wondering if there is any way we can retain the values in those registers and keep the clocks/timers ticking through a soft-rebot via NVIC_SystemReset().

Has anybody had any experience with this? We've been experimenting a bit and we are thinking that it's not possible, unless we're missing something.

ラベル(1)
1 解決策
644件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Evan,

Your hypothesis is correct, it's not possible to keep the clocks running through a soft-reboot via NVIC_SystemReset(). May I ask why do you need to keep the clocks running? Also, it's not possible to retain the values of the registers through a system reset. 

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

元の投稿で解決策を見る

3 返答(返信)
645件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Evan,

Your hypothesis is correct, it's not possible to keep the clocks running through a soft-reboot via NVIC_SystemReset(). May I ask why do you need to keep the clocks running? Also, it's not possible to retain the values of the registers through a system reset. 

Hope it helps!

Victor.

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

644件の閲覧回数
arnevaama
Contributor I

We are using the timers to store epoch time and would like to keep that time through NVIC_SystemResets so we don't have to sync the time to a server on the next boot.

Thanks for your tip!

0 件の賞賛
返信
644件の閲覧回数
mjbcswitzerland
Specialist V

Evan

Keep a copy of all the time(r) values (if possible) in an area of SRAM that is not used by anything else (and not initialised at reset) and they will be preserved through resets (not power cycles).

See the following for an overview of the method used in the uTasker project to make a Kinets part without RTC (eg. KL02) into a Kinetis part (sort of) WITH RTC...;-)

http://www.utasker.com/kinetis/KL_RTC.html

Regards

Mark

For less questions and faster, cheaper developments: try uTasker for Kinetis

0 件の賞賛
返信