This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 编译器/MSP430F5335:WDT重置后是否可以运行某些代码

Guru**** 2379200 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/662191/compiler-msp430f5335-is-it-possible-to-run-some-code-after-wdt-reset

部件号:MSP430F5335

工具/软件:TI C/C++编译器

如果WDT超时,是否可以运行一些代码并将一些调试信息写入闪存?  如果是,如何启用SYSRSTIV。  我添加了ISR,但UC似乎没有运行它...

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Silver您好,

    不能,在WDT超时后不能执行代码,因为WDT模块在正常模式下会自动导致重置。 现在,您可以将WDT更改为只导致中断,从而有效地使WDT只是一个正常的计时器。 在此ISR中,您可以执行任何需要的操作,然后手动重置设备。 有关不同模式的详细信息,请参阅用户的WDT部分。