CVS: python msp430-jtag.py,1.31,1.32

Chris Liechti <[email protected]> Wed, 28 May 2008 05:50:00 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28037

Modified Files:
	msp430-jtag.py 
Log Message:
Grants patches for help and upload from address 0


Index: msp430-jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-jtag.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -w -d -r1.31 -r1.32
--- msp430-jtag.py	8 Dec 2006 18:14:07 -0000	1.31
+++ msp430-jtag.py	28 May 2008 12:49:55 -0000	1.32
@@ -60,6 +60,8 @@
                         (experts only)
   --backend=backend     Select an alternate backend. See --help-backend for
                         more information.
+  --spy-bi-wire         Interface is two-wire spy-bi-wire instead of standard
+                        JTAG.
 
 Note: On Windows, use "TIUSB" or "COM5" etc if using MSP430.dll from TI.
       On other platforms, e.g. Linux, use "/dev/ttyUSB0" etc. if using
@@ -461,22 +463,22 @@
             sys.stderr.write("Warning: option --reset ignored as --go is specified!\n")
         reset = 0
 
-    if startaddr and reset:
+    if startaddr is not None and reset:
         if not quiet:
             sys.stderr.write("Warning: option --reset ignored as --upload is specified!\n")
         reset = 0
         
-    if startaddr and wait:
+    if startaddr is not None and wait:
         if not quiet:
             sys.stderr.write("Warning: option --wait ignored as --upload is specified!\n")
         wait = 0
 
     #upload ranges and address+size can not be mixed
-    if uploadlist and startaddr:
+    if uploadlist and startaddr is not None:
         sys.stderr.write("--upload: Either specify ranges (multiple --upload allowed) or one --upload and one --size\n")
         sys.exit(2)
     #backwards compatibility for old parameter format
-    if not uploadlist and startaddr:
+    if not uploadlist and startaddr is not None:
         uploadlist.append((startaddr, startaddr+size-1))
 
     #prepare data to download


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/