MCPcopy Create free account
hub / github.com/Marus/cortex-debug / rttPollStart

Method rttPollStart

src/openocd.ts:372–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370 private readonly tclDelimit = String.fromCharCode(0x1a);
371 private dbgPollCounter = 0;
372 private rttPollStart() {
373 this.rttPollTimer = setInterval(async () => {
374 if ((this.session.miDebugger.status === 'running') && !this.rttAutoStartDetected) {
375 try {
376 this.dbgPollCounter++;
377 OpenOCDLog('Sending command "rtt start"');
378 const result = await this.tclCommand('capture "rtt start"');
379 OpenOCDLog(`${this.dbgPollCounter}-OpenOCD TCL output: '${result}'`);
380 }
381 catch (e) {
382 OpenOCDLog(`OpenOCD TCL error: ${e}`);
383 }
384 }
385 }, this.args.rttConfig.rtt_start_retry);
386 }
387
388 private tclCommandQueue: TclCommandQueue[] = [];
389 private tclCommandId: number = 1;

Callers 1

rttPollMethod · 0.95

Calls 2

tclCommandMethod · 0.95
OpenOCDLogFunction · 0.85

Tested by

no test coverage detected