|
|
Cortex-M4内核,HardFault_IRQHandler中断函数打不了断点,感觉断点未生效,咋回事?
typedef enum IRQn {
/* Auxiliary constants */
NotAvail_IRQn = -128, /**< Not available device specific interrupt */
/* Core interrupts */
NonMaskableInt_IRQn = -14, /**< Non Maskable Interrupt */
HardFault_IRQn = -13, /**< Cortex-M4 SV Hard Fault Interrupt */
MemoryManagement_IRQn = -12, /**< Cortex-M4 Memory Management Interrupt */
。。。
};
void HardFault_IRQHandler(void)
{
/* Go to infinite loop when Hard Fault exception occurs */
while (1)
{
__disable_irq();//禁止所有中断
NVIC_SystemReset();
}
}
|
|