2932 views|4 replies

121

Posts

1

Resources
The OP
 

MSP430FR6972 watchdog cannot restart the program [Copy link]

Use WDTCTL = WDT_ARST_1000; to set the watchdog. In the main loop, WDTCTL = WDT_ARST_1000; feeds the watchdog, and the program works normally;

When the main loop feeding is removed, the program dies and does not restart. The WDTCTL clock source changes from ACLK to the default SMCLK. I don't understand why it does not restart.


This post is from Microcontroller MCU

Latest reply

Can you see where it freezes during debugging? The clock source should be reset when it changes. You can add serial port printing to see if the program is reset and where it freezes  Details Published on 2018-5-29 18:24
 

1059

Posts

1

Resources
2
 
This cannot be done. WDT_ARST_1000 uses ACLK as the watchdog clock.
This post is from Microcontroller MCU

Comments

Now I use WDTCTL = WDT_ARST_1000; select ALCK as the watchdog clock. If I don't feed the watchdog, the time is up and the system freezes. The program cannot be restarted. In addition, the clock source has also been changed. I don't know what caused this change. Using WDTCTL = WDT_ARST_1000; to feed the watchdog can clear the count and ensure  Details Published on 2018-5-29 18:19
 
 

1059

Posts

1

Resources
3
 
If you use another clock as the watchdog clock, just select the corresponding function. It is clearly written in the header file.
This post is from Microcontroller MCU
 
 
 

121

Posts

1

Resources
4
 
qwerghf posted on 2018-5-29 17:12 This cannot be done. WDT_ARST_1000 uses ACLK as the watchdog clock
Now I use WDTCTL = WDT_ARST_1000; and select ALCK as the watchdog clock. If I don’t feed the watchdog, the time is up and the system freezes, and the program cannot be restarted. In addition, the clock source has also been changed. I don’t know what caused this change. Feeding the watchdog with WDTCTL = WDT_ARST_1000; can clear the count, while ensuring that the watchdog clock source remains unchanged; this way the program can run normally
This post is from Microcontroller MCU

Comments

Can you see where the program is stuck during debugging? The clock source should be reset if it is changed. You can add serial port printing to see if the program is reset and where it is stuck.  Details Published on 2018-5-29 18:24
 
 
 

1059

Posts

1

Resources
5
 
Let go of that chicken leg posted on 2018-5-29 18:19 Now I use WDTCTL = WDT_ARST_1000; select ALCK as the watchdog clock, don't feed the dog, time out, freeze, the program can't restart; another...
Can you see where it freezes during debugging? The clock source should be reset when it changes. You can add serial port printing to see if the program is reset and where it freezes
This post is from Microcontroller MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list