()
| 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; |
no test coverage detected