CVS: python msp430-jtag.py,1.17,1.18
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-serv23036/python
Modified Files:
msp430-jtag.py
Log Message:
fix wait function, so that target is released before waiting
Index: msp430-jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-jtag.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -w -d -r1.17 -r1.18
--- msp430-jtag.py 9 Mar 2006 21:00:52 -0000 1.17
+++ msp430-jtag.py 10 Mar 2006 23:04:47 -0000 1.18
@@ -395,6 +395,7 @@
sys.stderr.flush()
abort_due_to_error = 1
+ release_done = 0
jtagobj.open(lpt) #try to open port
try:
if ramsize is not None:
@@ -447,6 +448,8 @@
wait = 0 #wait makes no sense as after upload, the device is still stopped
if wait: #wait at the end if desired
+ jtagobj.reset(1, 1) #reset and release target
+ release_done = 1
sys.stderr.write("Press <ENTER> ...\n") #display a prompt
sys.stderr.flush()
raw_input() #wait for newline
@@ -455,6 +458,7 @@
finally:
if abort_due_to_error:
sys.stderr.write("Cleaning up after error...\n")
+ if not release_done:
jtagobj.reset(1, 1) #reset and release target
if do_close:
jtagobj.close() #Release communication port
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642