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.

[参考译文] MSP430F6779A:_TI_ISR_TRAP 用于未定义的中断的用途是什么?

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1339827/msp430f6779a-what-is-purpose-of-__ti_isr_trap-for-the-interrupt-that-undefined

器件型号:MSP430F6779A

中、我们的源代码中没有定义中断向量用户 NMI 的函数。
解汇编代码看到__TI_ISR_TRAP 已由编译器生成。

//------------------------------------------------------------------------------
//                         Interrupt Service Routine
//------------------------------------------------------------------------------
//#pragma vector=UNMI_VECTOR            /* 0xFFFA User Non-maskable */
//__interrupt void int_UNMI(void)
//{
//
//}

#pragma vector=SYSNMI_VECTOR            /* 0xFFFC System Non-maskable */
__interrupt void int_SYSNMI(void)
{

}

这意味着如果用户 NMI 中断意外发生(如果程序错误启用这个中断)、程序将运行到无限循环。


对于未定义的中断、__ TI_ISR_TRAP 的用途是什么?

IDE:Code Composer Studio 版本:10.1.1.00004

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

    只需确保代码中存在一个 NMI 中断 IRQ。 如果你认为它不适合你的应用,你可以声明一个新的. 编译器将覆盖默认值。