SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By daveb1
#183326
Hi,

I want to switch off background JTAG polling when OpenOCD is idle then switch it on when before any target activity e.g. step, run, etc.

I have Tcl handlers for the 'halted', 'debug-halted' & 'gdb-end' events to run the 'poll off' command and a handler for 'debug-resumed' which issues the 'poll on' command. After flashing the target I can see the halted handler(s) get called but the poll-off command seems to be overridden. Even issuing 'poll off' in the 'gdb-flash-write-end' handler has no effect. If I run 'poll off' from Telnet when the target is idle after flashing then polling does stop. Polling restarts when I then step or run the target and stops again when I halt the target, as expected.

The start/stop polling works it's just the initial idle state after flashing the target where it's halted and ready to be stepped/run for the first time where the polling won't stop.

Any ideas what I can do to overcome this ?

Thanks
Dave
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]