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.

[参考译文] MSPM0G3107:发生看门狗复位时、未更新复位原因

Guru**** 2398695 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1419419/mspm0g3107-reset-reason-not-updated-when-watchdog-reset-occurs

器件型号:MSPM0G3107

工具与软件:

您好!

我从 MCAL_MSPM0G350x_00.01.03.00集成了 WDG 驱动程序、并注意到在发生看门狗复位时、复位原因寄存器未更新。

为了进行集成、我在窗口模式下使用了 WWDT1 (名为 Wdg_Init ())、然后 Wdg_Set 和 Traci 从周期性任务(名为 Wdg_Set ggerCondition)触发了看门狗。

在触发看门狗并在 Reset_Handler 中设置一个断点后、我在周期任务上添加了一个 while (1)。 程序复位、但当我查看调试器中的 SYSCTL_RSTCAUSE 时、会发现自上次读取后没有进行复位。 到达 Reset_Handler 中的断点时读取该值、以确保没有读取用于清除该断点的寄存器。

配置/集成时是否遗漏了其他内容?

谢谢!

此致、

Andreea Barbu