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.

Device is locked up in Hard Fault or in NMI

#include "inc/hw_ints.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/rom.h"
#include "driverlib/sysctl.h"
#include"driverlib/timer.h"
#include "utils/uartstdio.h"
void
Timer0IntHandler(void)
{
 //清零Timer0中断标志
 TimerIntClear(TIMER0_BASE,TIMER_TIMA_TIMEOUT);
 IntMasterDisable();// 禁止全局中断
 SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);//使能B模块
 GPIOPinTypeGPIOOutput(GPIO_PORTB_BASE,GPIO_PIN_6);//设置GPIOB6为输出
 GPIOPinWrite(GPIO_PORTB_BASE,GPIO_PIN_6,GPIOPinRead(GPIO_PORTB_BASE,GPIO_PIN_6)^GPIO_PIN_6);//翻转
 IntMasterEnable();//开启全局中断
}
 int main(void)
{
  SysCtlClockSet(SYSCTL_SYSDIV_1|SYSCTL_USE_OSC|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ);//设置外部16M晶振为系统时钟源
  SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);//使能计数器0
  IntMasterEnable();//开启全局中断
  TimerConfigure(TIMER0_BASE,TIMER_CFG_32_BIT_PER);//配置计数器0为32位定时器
  TimerLoadSet(TIMER0_BASE,TIMER_A,SysCtlClockGet()/10);//设置TIMER0周期为0.1s
  IntEnable(INT_TIMER0A);
  TimerIntEnable(TIMER0_BASE,TIMER_TIMA_TIMEOUT);
  TimerEnable(TIMER0_BASE,TIMER_A);//启动timer0
  while(1)
  {

 }
 }

前边都正常执行,但是执行到while(1)单步执行时就会遇到

CORTEX_M3_0: Can't Run Target CPU: (Error -1268 @ 0x90001) Device is locked up in Hard Fault or in NMI. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.0.762.0)

用的是LM3S9B92,编译环境是CCSV5.2.1 这个问题困扰好几天了,麻烦指导