Skip to content
Browse files

added mspdebug support for windows

  • Loading branch information...
1 parent 9aaf2ec commit bed194d05ad93979bef09e8e2d9cd5a9edcbd2c2 @StefanSch StefanSch committed Jun 7, 2012
Showing with 20 additions and 4 deletions.
  1. +20 −4 app/src/processing/app/debug/MSP430Uploader.java
  2. BIN build/windows/msp430_tools.zip
View
24 app/src/processing/app/debug/MSP430Uploader.java
@@ -52,7 +52,9 @@ public boolean uploadUsingPreferences(String buildPath, String className, boolea
throws RunnerException, SerialException {
this.verbose = verbose;
Map<String, String> boardPreferences = Base.getBoardPreferences();
- //No serial programming support (yet). Upload using programmer (MSP430Flasher for windows and mspdebug for Mac OS X and Linux).
+ //No serial programming support (yet).
+ //Upload using programmer (MSP430Flasher for windows and mspdebug for Mac OS X and Linux).
+ //added support for mspdebug for windows
Target target = Base.getTarget();
Collection params = new ArrayList();
@@ -66,11 +68,11 @@ public boolean uploadUsingPreferences(String buildPath, String className, boolea
params.add("prog " + buildPath + File.separator + className + ".hex");
}
else {
- params.add("\"prog " + buildPath + File.separator + className + ".hex\"");
+ params.add("prog " + buildPath + File.separator + className + ".hex");
}
return mspdebug(params);
} else {
-
+/* // code to access via MSP430_Flasher
params.add("-n " + boardPreferences.get("build.mcu"));
params.add("-w");
params.add(buildPath + File.separator + className + ".hex");
@@ -80,6 +82,16 @@ public boolean uploadUsingPreferences(String buildPath, String className, boolea
params.add("-z[VCC]");
return MSP430Flasher(params);
+*/
+// params.add(boardPreferences.get("upload.protocol"));
+ params.add("tilib"); // always use the TI Lib on Windows, best integrate on this OS
+ params.add("-d");
+ params.add("USB");
+ if(!Preferences.getBoolean("upload.verbose"))
+ params.add("-q");
+ params.add("--force-reset");
+ params.add("\"prog " + buildPath + File.separator + className + ".hex\"");
+ return mspdebug(params);
}
}
@@ -93,9 +105,13 @@ public boolean mspdebug(Collection params) throws RunnerException {
if ( Base.isLinux()) {
commandDownloader.add("mspdebug"); // use the one in the PATH
- } else {
+ }
+ else if (Base.isMacOS()) {
commandDownloader.add(Base.getHardwarePath() + "/tools/msp430/mspdebug/mspdebug");
}
+ else {
+ commandDownloader.add(Base.getHardwarePath() + "\\tools\\msp430\\mspdebug\\mspdebug");
+ }
commandDownloader.addAll(params);
return executeUploadCommand(commandDownloader);
View
BIN build/windows/msp430_tools.zip
Binary file not shown.

0 comments on commit bed194d

Please sign in to comment.
Something went wrong with that request. Please try again.