Skip to content

Commit

Permalink
Revert "Add BMP connect_srst option (Marus#735)"
Browse files Browse the repository at this point in the history
This reverts commit d4858f0.

Same result can be acheived with overrideLaunchCommands.
  • Loading branch information
andrej-mk committed Sep 14, 2022
1 parent 6285985 commit 4839a42
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1617,10 +1617,6 @@
"powerOverBMP": {
"type": "string",
"description": "Power up the board over Black Magic Probe. \"powerOverBMP\" : \"enable\" or \"powerOverBMP\" : \"disable\". If not set it will use the last power state."
},
"bmpConnectUnderReset": {
"type": "boolean",
"description": "Configure connect under SRST."
}
},
"required": [
Expand Down Expand Up @@ -2732,10 +2728,6 @@
"powerOverBMP": {
"type": "string",
"description": "Power up the board over Black Magic Probe. \"powerOverBMP\" : \"enable\" or \"powerOverBMP\" : \"disable\". If not set it will use the last power state."
},
"bmpConnectUnderReset": {
"type": "boolean",
"description": "Configure connect under SRST."
}
},
"required": [
Expand Down
6 changes: 0 additions & 6 deletions src/bmp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ export class BMPServerController extends EventEmitter implements GDBServerContro
`target-select extended-remote ${this.args.BMPGDBSerialPort}`
];

if (this.args.bmpConnectUnderReset) {
commands.push('interpreter-exec console "monitor connect_rst enable"');
} else {
commands.push('interpreter-exec console "monitor connect_rst disable"');
}

if (this.args.powerOverBMP === 'enable') {
commands.push('interpreter-exec console "monitor tpwr enable"');
// sleep for 100 ms. MCU need some time to boot up after power up
Expand Down
1 change: 0 additions & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ export interface ConfigurationArguments extends DebugProtocol.LaunchRequestArgum
// BMP Specific
BMPGDBSerialPort: string;
powerOverBMP: string;
bmpConnectUnderReset: boolean;

// QEMU Specific
cpu: string;
Expand Down

0 comments on commit 4839a42

Please sign in to comment.