CVS: python msp430-jtag.py,1.25,1.26
Chris Liechti <[email protected]> Sun, 03 Sep 2006 08:36:23 -0700
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv24028/python
Modified Files:
msp430-jtag.py
Log Message:
add command line option to use new HIL_Slowdown function (tested on windows only)
Index: msp430-jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-jtag.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -w -d -r1.25 -r1.26
--- msp430-jtag.py 23 Apr 2006 23:38:18 -0000 1.25
+++ msp430-jtag.py 3 Sep 2006 15:36:21 -0000 1.26
@@ -49,12 +49,22 @@
autodetect).
Connection:
- -l, --lpt=name Specify an other parallel port.
+ -l, --lpt=name Specify an other parallel port or serial port for the
+ USBFET (the later requires MSP430.dll instead of
+ MSP430mspgcc.dll).
(defaults to "LPT1" ("/dev/parport0" on Linux))
+ --slowdown=microsecs Artificially slow down the communication. Can help
+ with long lines, try values between 1 and 50 (parallel
+ port interface with mspgcc's HIL library only).
+ (experts only)
Note: On Windows, use "TIUSB" or "COM5" etc if using MSP430.dll from TI.
If a MSP430.dll is found it is prefered, otherwise MSP430mspgcc.dll
is used.
+Note: --slowdown > 50 can result in failrures for the ramsize autodetection
+ (use --ramsize option to fix this). Use the --debug option and watch
+ the outputs. The DCO clock adjustment and thus the Flash timing may be
+ inacurate for large values.
Funclets:
-f, --funclet The given file is a funclet (a small program to
@@ -185,7 +195,7 @@
"upload=", "download=", "size=", "hex", "bin", "ihex",
"intelhex", "titext", "elf", "funclet", "ramsize=", "progress",
"no-close", "parameter=", "result=", "timeout=", "secure",
- "quiet", "backend="]
+ "quiet", "backend=", "slowdown="]
)
except getopt.GetoptError, e:
# print help information and exit:
@@ -345,6 +355,19 @@
elif o in ("-q", "--quiet", ):
quiet = 1
jtagobj.verbose = 0
+ elif o == "--slowdown":
+ slowdown = long(a)
+ import ctypes
+ if sys.platform == 'win32':
+ HIL_SetSlowdown = ctypes.windll.HIL.HIL_SetSlowdown
+ else:
+ # XXX and posix platforms?!
+ HIL_SetSlowdown = ctypes.cdll.HIL.HIL_SetSlowdown
+ HIL_SetSlowdown = ctypes.windll.HIL.HIL_SetSlowdown
+ HIL_SetSlowdown.argtypes = [ctypes.c_ulong]
+ HIL_SetSlowdown.restype = ctypes.c_int #actually void
+ # set slowdown
+ HIL_SetSlowdown(slowdown)
if DEBUG:
if quiet:
-------------------------------------------------------------------------
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