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.

[参考译文] MSP432E401Y:如何以最佳方式响应即将发生的断电

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1251813/msp432e401y-how-best-to-respond-to-imminent-loss-of-power

器件型号:MSP432E401Y

我们将 TIRTOS/Simplelink SDK 与 MSP432E401Y 配合使用。  我们正在寻找一种机制来通知 RTOS 将关闭电源。  我们不希望系统像一切正常一样继续运行和访问资源。  为 RTOS 做好准备的最佳方式是什么?

做一些像这样的事情是否足够?

Hwip_disable ();

while (1){;}

或者、是否有某种会更好的特定命令?

我注意到一些芯片有一个 Power_shutdown () API ,但这似乎没有为 MSP432E401Y 实现。

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

    您好、Paul、

     我认为您正在尝试的工作应该起作用、但我 可以想到 另外一件事也应该有所帮助。 你不仅禁用了中断、而且创建了一个最高优先级的虚拟任务。 这个虚拟任务将只是旋转。 这是为了确保在电源关断时、没有其他任务可以优先于进行中间操作。  

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

    您好、Charles。  我非常感谢您的快速响应。  这可以照顾我。  谢谢你。