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.

[参考译文] TMS570LS0232:重定向至看门狗未复位时的功能

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1373918/tms570ls0232-redirect-to-function-when-watchdog-is-not-reset

器件型号:TMS570LS0232

工具与软件:

大家好!

我目前正在我的项目中积极使用看门狗。 看门狗每0.5ms 复位一次。 如果看门狗没有复位、我想将其定向到一个功能。 在我研究的示例中、我看到了使用 RTI、ESM、VIM 的示例、但我想问您、因为我不知道我会使用哪一个来获得更高效的结果。

感谢你的帮助。

大家好

Fatih

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

    尊敬的 Fatih:

    [quote userid="604212" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1373918/tms570ls0232-redirect-to-function-when-watchdog-is-not-reset 我目前正在我的项目中使用看门狗。 看门狗每0.5ms 复位一次。 如果看门狗未复位、我要将其定向到一个函数。

    我认为您需要为看门狗启用 NMI 中断。 如果您为看门狗启用 NMI 中断、如果看门狗复位未在指定时间内发生、则处理器将获得 NMI 中断而不是处理器直接复位、并且执行现在将转移到 NMI 处理程序。 然后、您可以根据需要执行操作。

    您可以在以下 E2E 的第一条注释中找到 NMI 中断的示例工程:

    (+)[常见问题解答] TMS570LC4357:如何使用数字看门狗-基于 Arm 的微控制器论坛-基于 Arm 的微控制器- TI E2E 支持论坛

    ——
    谢谢、此致、
    Jagadish。