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.

[参考译文] TMS570LS3137:安全装置_DISABLE_IRQ

Guru**** 2480915 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/700343/tms570ls3137-watchdog-_disable_irq

器件型号:TMS570LS3137

由于在启用中断以及对 ISR 代码所在的块进行擦除/编程时、闪存 API F021不起作用、因此我决定使用以下模型:

disable_IRQ ();

FLASH_ERASE ()

enable_IRQ ();

我还在 main()中调用 dwdInit(),并定期调用 dwdReset|()。

我无法理解 DISABLE/ENABLE_IRQ 对看门狗计时器的影响。

当我调用 enable_IRQ|()时,DWD 是否会自动开始运行? 我是否需要任何与 DWD 相关的函数调用来重新启动 DWD?  

您能否解释 disable/enable_IRQ 对 DWD 的影响?

谢谢、

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    DWD 在中断之外被启用。 dwdInit()函数启用 DWD。 启用后、DWD 只能通过系统复位来禁用。 如果发生系统复位、则需要再次启用 DWD。

    此致、
    Sunil