CVS: python msp430-downloader.py,1.6,1.7
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-serv17398/python
Modified Files:
msp430-downloader.py
Log Message:
- update downloader to API changes
- add an icon and use it in py2exe (xcf: gimp source image)
Index: msp430-downloader.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430-downloader.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- msp430-downloader.py 14 Jun 2005 10:49:55 -0000 1.6
+++ msp430-downloader.py 28 Dec 2005 19:55:48 -0000 1.7
@@ -36,7 +36,8 @@
sys.stdout = sys.stderr = StringIO()
if EasyDialogs.AskYesNoCancel(
- "Download '%s' using the JTAG interface?" % (filename,)
+ "MSP430 downloader\n\nDownload '%s' using the JTAG interface?" % (filename,),
+ cancel=""
) != 1:
sys.exit(1)
@@ -59,7 +60,8 @@
jtagobj.data = msp430.memory.Memory() #prepare downloaded data
jtagobj.data.loadFile(filename) #autodetect filetype
jtagobj.bar.label('Connecting...')
- jtagobj.connect(lpt) #try to open port
+ jtagobj.open(lpt) #try to open port
+ jtagobj.connect() #try to connect to target
try:
jtagobj.bar.label('Erasing...')
answer = EasyDialogs.AskYesNoCancel("Choose erase mode",
-------------------------------------------------------
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