CVS: python/mspgcc jtag.py,1.6,1.7

Chris Liechti <[email protected]> Thu, 18 May 2006 14:34:20 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python/mspgcc
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20845/python/mspgcc

Modified Files:
	jtag.py 
Log Message:
fix problem with USB JTAGs aka "invalid parameter(s) error"

Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/mspgcc/jtag.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- jtag.py	1 May 2006 22:05:33 -0000	1.6
+++ jtag.py	18 May 2006 21:34:17 -0000	1.7
@@ -154,12 +154,12 @@
             MSP430_Open.restype         = ctypes.c_int
         else:
             MSP430_Identify             = MSP430mspgcc.MSP430_Identify
-            MSP430_Identify.argtypes    = [ctypes.POINTER(ctypes.c_char*56), ctypes.c_long, ctypes.c_long]
+            MSP430_Identify.argtypes    = [ctypes.POINTER(ctypes.c_char*80), ctypes.c_long, ctypes.c_long]
             MSP430_Identify.restype     = ctypes.c_int
             #TI's USB-FET lib does not have this function, they have an MSP430_Identify instead
             def MSP430_Open():
-                buffer = (ctypes.c_char*56)()
-                status = MSP430_Identify(ctypes.byref(buffer), 56, 0)
+                buffer = (ctypes.c_char*80)()
+                status = MSP430_Identify(ctypes.byref(buffer), 80, 0)
                 if status != STATUS_OK:
                     return STATUS_ERROR
                 if DEBUG:



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642