Skip to content

Commit 66e5e57

Browse files
committed
Remove automatic start of OpenOCD
1 parent 7af487e commit 66e5e57

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/org/deepjava/openOCDInterface/OpenOCD.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ public static TargetConnection getInstance() {
4343
public void openConnection() throws TargetConnectionException {
4444
if (dbg) StdStreams.vrb.println("[TARGET] Open connection");
4545
try {
46-
String currLoc = new File(".").getAbsolutePath();
47-
currLoc = currLoc.replace(currLoc.substring(currLoc.length()-1), "");
48-
currLoc += "\\startOpenocd-local.bat";
49-
String name = "F:\\openocd-0.10.0\\startOpenocdMicrozed.bat";
50-
// StdStreams.vrb.println("run openocd: " + name);
51-
File dir = new File("F:\\openocd-0.10.0");
52-
Process p = Runtime.getRuntime().exec("cmd /c start \"\" " + name, null, dir);
53-
if (p != null) {
54-
if (dbg) StdStreams.vrb.println("OpenOCD process not null, " + p.toString());
55-
} else {
56-
if (dbg) StdStreams.vrb.println("OpenOCD process null");
57-
}
46+
// String currLoc = new File(".").getAbsolutePath();
47+
// currLoc = currLoc.replace(currLoc.substring(currLoc.length()-1), "");
48+
// currLoc += "\\startOpenocd-local.bat";
49+
// String name = "F:\\openocd-0.10.0\\startOpenocdMicrozed.bat";
50+
//// StdStreams.vrb.println("run openocd: " + name);
51+
// File dir = new File("F:\\openocd-0.10.0");
52+
// Process p = Runtime.getRuntime().exec("cmd /c start \"\" " + name, null, dir);
53+
// if (p != null) {
54+
// if (dbg) StdStreams.vrb.println("OpenOCD process not null, " + p.toString());
55+
// } else {
56+
// if (dbg) StdStreams.vrb.println("OpenOCD process null");
57+
// }
5858

5959
socket = new Socket(hostname, port);
6060
socket.setSoTimeout(1000);

0 commit comments

Comments
 (0)