Re: [Openocd-development] OpenOCD with ADuC7022 and watchdog

2008-08-05 Thread Øyvind Harboe
On Tue, Aug 5, 2008 at 7:10 PM, David Kuehling <[EMAIL PROTECTED]> wrote: >> "Øyvind" == Øyvind Harboe <[EMAIL PROTECTED]> writes: > >>> Browsing through JIM SVN, I just found an 'after' implementation: >>> >>> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/jim/jim/jim-eventloop.c?rev=HEAD&content-t

Re: [Openocd-development] OpenOCD with ADuC7022 and watchdog

2008-08-05 Thread David Kuehling
> "Øyvind" == Øyvind Harboe <[EMAIL PROTECTED]> writes: >> Browsing through JIM SVN, I just found an 'after' implementation: >> >> http://cvs.berlios.de/cgi-bin/viewcvs.cgi/jim/jim/jim-eventloop.c?rev=HEAD&content-type=text/vnd.viewcvs-markup >> >> Maybe this can be added to OpenOCD? > Shou

Re: [Openocd-development] OpenOCD with ADuC7022 and watchdog

2008-08-05 Thread Øyvind Harboe
On Tue, Aug 5, 2008 at 5:30 PM, David Kuehling <[EMAIL PROTECTED]> wrote: >> "Øyvind" == Øyvind Harboe <[EMAIL PROTECTED]> writes: > >> 200ms? > >> OpenOCD, being single threaded, really won't be able to honor that >> frequency... > >> At best a callback could be guaranteed to be serviced every

Re: [Openocd-development] OpenOCD with ADuC7022 and watchdog

2008-08-05 Thread David Kuehling
> "Øyvind" == Øyvind Harboe <[EMAIL PROTECTED]> writes: > 200ms? > OpenOCD, being single threaded, really won't be able to honor that > frequency... > At best a callback could be guaranteed to be serviced every > 1000-2000ms, because that is a requirement imposed by the keep_alive() > protoc

Re: [Openocd-development] OpenOCD with ADuC7022 and watchdog

2008-08-05 Thread Øyvind Harboe
> proc watchdog_service {} { > mww 0x036c 0 > after 200 watchdog_service > } 200ms? OpenOCD, being single threaded, really won't be able to honor that frequency... At best a callback could be guaranteed to be serviced every 1000-2000ms, because that is a requirement imposed by th

Re: [Openocd-development] OpenOCD with ADuC7022 and watchdog

2008-08-05 Thread Øyvind Harboe
Well spotted! > So, does anybody know how to achieve that without patching the sources? No. > If patching the sources were required, maybe adding another kind of > target script ("while_halted") might be a solution and I'd be happy to > write a patch if nobody objects. Pre/post_halt/resume? No

[Openocd-development] OpenOCD with ADuC7022 and watchdog

2008-08-05 Thread David Kuehling
Hi, some days ago I added a jtag connector to a ADuC7022 board and used an olimex USB adapter with OpenOCD (compiled from SVN head) to test whether that works. Well, I stumbled into some strange problems, and after some hours of debugging OpenOCD it looks like the ADuC7022's watchdog is the culpr