()
| 93 | } |
| 94 | |
| 95 | private SWOConfigurationCommands(): string[] { |
| 96 | const portMask = '0x' + calculatePortMask(this.args.swoConfig.decoders).toString(16); |
| 97 | const swoFrequency = this.args.swoConfig.swoFrequency | 0; |
| 98 | const cpuFrequency = this.args.swoConfig.cpuFrequency | 0; |
| 99 | |
| 100 | const commands: string[] = [ |
| 101 | `monitor SWO EnableTarget ${cpuFrequency} ${swoFrequency} ${portMask} 0`, |
| 102 | 'DisableITMPorts 0xFFFFFFFF', |
| 103 | `EnableITMPorts ${portMask}`, |
| 104 | 'EnableDWTSync', |
| 105 | 'ITMSyncEnable' |
| 106 | ]; |
| 107 | |
| 108 | commands.push(this.args.swoConfig.profile ? 'EnablePCSample' : 'DisablePCSample'); |
| 109 | |
| 110 | return commands.map((c) => `interpreter-exec console "${c}"`); |
| 111 | } |
| 112 | |
| 113 | public serverExecutable() { |
| 114 | if (this.args.serverpath) { return this.args.serverpath; } |
no test coverage detected