CVS: python msp430-jtag.py,1.11,1.12
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17021/python
Modified Files:
msp430-jtag.py
Log Message:
- add the ability to run funclets for a given time
- new function MSP430_FuncletWait, internal API changes for executeCode
- add a counter funclet (can be used to determine DCO frequency)
- update msp430-jtag with the new feature
Index: msp430-jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-jtag.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- msp430-jtag.py 23 Dec 2005 02:23:54 -0000 1.11
+++ msp430-jtag.py 27 Dec 2005 01:12:11 -0000 1.12
@@ -58,6 +58,8 @@
(case insensitive) "R15" reads R15 etc. Address ranges
can be read with "0x2e0-0x2ff". see also --upload.
--result can be given more than once
+ --timeout=value Abort the funclet after the given time in seconds
+ if it does not exit no itslef. (default 1)
Note: writing and/or reading RAM before and/or after running a funclet may not
work as expected on devices with the JTAG bug like the F123.
@@ -128,6 +130,7 @@
do_close = 1
parameters = []
results = []
+ timeout = 1
sys.stderr.write("MSP430 parallel JTAG programmer Version: %s\n" % VERSION)
try:
@@ -139,7 +142,7 @@
"verify", "reset", "go=", "debug",
"upload=", "download=", "size=", "hex", "bin", "ihex",
"intelhex", "titext", "funclet", "ramsize=", "progress",
- "no-close", "parameter=", "result="]
+ "no-close", "parameter=", "result=", "timeout="]
)
except getopt.GetoptError, e:
# print help information and exit:
@@ -285,7 +288,8 @@
else:
start = end = int(a,0)
results.append(('0x%04x: %%r' % start, jtagobj.uploadData, (start, end-start)))
-
+ elif o in ("--timeout", ):
+ timeout = float(a)
if len(args) == 0:
sys.stderr.write("Use -h for help\n")
@@ -380,7 +384,7 @@
function(*args)
if funclet is not None: #download and start funclet
- jtagobj.actionFunclet()
+ jtagobj.actionFunclet(timeout)
if goaddr is not None: #start user programm at specified address
jtagobj.actionRun(goaddr) #load PC and execute
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click