This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HardFault in Config timer

Hi
i start with keil & ulink2 with lm3s6965 dev kit

after blinky project i start use one timer interrupt :

#include "lm3s6965.h"
#include "lm3s_cmsis.h"

int main(void){ SYSCTL_RCGC1_R = SYSCTL_RCGC1_TIMER0; TIMER0_CTL_R = 0X00 ; TIMER0_CFG_R = TIMER_CFG_32_BIT_TIMER ; TIMER0_TAMR_R = TIMER_TAMR_TAMR_PERIOD ; TIMER0_TAILR_R = 0x0FFFFFFF ; TIMER0_IMR_R = TIMER_IMR_TATOIM ; NVIC_EN0_R = NVIC_EN0_INT19; NVIC_PRI4_R = 0x20000000 ; TIMER0_CTL_R = TIMER_CTL_TAEN ;

while (1) {}
}

void Timer0A_IRQHandler(void) {
}

in step by step mode i have not any problem but when run mode i get
generate HardFault with impreciserr flag why this happen ?
what is wrong ?