--- In lpc2000@yahoogroups.com, "sengoontoh" <sengoontoh@y...> wrote: > I've a program running interrupts on both UART0 and UART1 as well > as a > Match timer interrupt. All interrupts are routed through the VIC > with > Timer0 having slot 0, uart0 and uart1 having slot 1 and 2 > respectively. When my application starts getting busy with lots of > activity on uart 1 and uart 0, it hangs. The interrupts continue to > work flawlessly. You can even trace through them in IAR. However > every > single time I break, I'm in an interrupt handler. Occasionally I'm > in > the low level program startup code. Does anyone have any idea what > would cause this behavior. > > Also I had a question about resetting the Vic. I'm doing > VicVectorAddres s = 0. I've seen people setting it to 0xff. Which > one > is correct? > > Thanks! I've had a similiar problem recently. If you have variables, which are written in your interrupt routines you have to declare them volatile. And in your main loop you may have to access this variables atomicly. This is what helped me. Gerhard
Message
Re: Interrupts run but main program halts
2005-08-03 by gerhard_uttenthaler
Attachments
- No local attachments were found for this message.