A few more improvements to the scripts. Fixed error.
@@ -425,8 +425,8 @@ def flashmspdebug(binfile, binpath, searchpath):
sp1 = str(sp1 + ":" + searchpath)
fileloc=str("%s/%s" % (binpath, binfile))
- print("LD_LIBRARY_PATH will be: " % str(sp1) )
- print("File to be flashed: " % str(fileloc))
+ print("LD_LIBRARY_PATH will be: %s" % str(sp1) )
+ print("File to be flashed: %s" % str(fileloc))
mspdebugloc = findBin('mspdebug')
print("Found mspdebug at %s" % mspdebugloc)
@@ -435,6 +435,8 @@ def flashmspdebug(binfile, binpath, searchpath):
commandstring = str("LD_LIBRARY_PATH=\"%s\" %s tilib \"%s %s\" --allow-fw-update" %
(sp1, mspdebugloc, cmd, fileloc))
+ print "About to execute the following command:\n%s" % str(commandstring)
+
try:
print("\n** Flashing binary to the board:\n")
output = subprocess.check_output(commandstring, shell = True)
