Hello,
we have an custom board with an TM4C1231.
The Problem is, that we can't see any interrupt ....
We have reduced the code to
://*****************************************************************************
//
// The interrupt handler for the Timer0B interrupt.
//
//*****************************************************************************
void
Timer0BIntHandler(void)
{
//
// Clear the timer interrupt flag.
//
TimerIntClear(TIMER0_BASE, TIMER_TIMB_TIMEOUT);
g_ui32Counter++;
}
//*****************************************************************************
//
// Configure Timer0B as a 16-bit periodic counter with an interrupt
// every 1ms.
//
//*****************************************************************************
int
main(void)
{
uint32_t ui32PrevCount = 0;
SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);
TimerConfigure(TIMER0_BASE, TIMER_CFG_SPLIT_PAIR | TIMER_CFG_B_PERIODIC);
TimerLoadSet(TIMER0_BASE, TIMER_B, SysCtlClockGet() / 1000);
IntMasterEnable();
TimerIntEnable(TIMER0_BASE, TIMER_TIMB_TIMEOUT);
IntEnable(INT_TIMER0B);
TimerEnable(TIMER0_BASE, TIMER_B);
//
// Loop forever while the Timer0B runs.
//
while(1)
{
}
}
If i place an breakpoint in the int handler, the int was never fired.
In the Register i can see, that the counter will count.
In the startup file i add :
Timer0BIntHandler, // Timer 0 subtimer B
Can a hardware problem cause this behavior ?
Any Suggestions?
Andreas