 | Discussion Forum |  |
|
|
LPC2129 Fast Interrupt and Watchdog HappeningsNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Dietmar Wengler Posted 13-Sep-2005 16:27 GMT Toolset ARM |  LPC2129 Fast Interrupt and Watchdog Happenings Dietmar Wengler Hi all,
I have an application with LPC2129 where a timer is running in fiq mode and the watchdog is activated. The watchdog is cyclic feeded in a swi exception that is called from the main loop. The program does not work when watchdog is enabled: Frequently, sporadic, a watchdog reset occurs.
The duration of a main loop is a few milliseconds, whereas the watchdog timer value is 15 seconds, there is no problem.
One reason is certainly the interruptable watchdog feed sequence with fast interrupt fiq every 1 ms.
But, how to fix it? How to make the swi exception uninterruptable for fiq interrupt? How to disable the fiq without lost interrupts? I tried to set the f-bit in cpsr before swi entry and to clear the f-bit after swi but that failed.
With timer in irq mode, all works fine.
A solution would be to feed the watchdog uninterruptable in the fiq interrupt but that isn't a good programming practice.
What can I do other than to force my knowledge and spend much time in ARM assembler and instruction set?
Is there anybody who has a suggestion?
Dietmar | | Read-Only Author Reinhard Keil Posted 14-Sep-2005 13:39 GMT Toolset ARM |  RE: LPC2129 Fast Interrupt and Watchdog Happenings Reinhard Keil See: http://www.keil.com/support/docs/2990.htm
Reinhard | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|