CVS: python/msp430 bsl.py,1.5,1.6

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/python/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26986/python/msp430

Modified Files:
	bsl.py 
Log Message:
- re-implemented --slow cmd line option
- the old internal slowmode is now default and slowmode uses an even slower timing for the BSL invocation

Index: bsl.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430/bsl.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -w -d -r1.5 -r1.6
--- bsl.py	6 Nov 2004 23:21:11 -0000	1.5
+++ bsl.py	12 Nov 2004 22:27:39 -0000	1.6
@@ -268,7 +268,7 @@
         
         self.protocolMode = self.MODE_BSL
         self.BSLMemAccessWarning = 0                #Default: no warning.
-        self.slowmode = 1                       #give a little time when changing the control lines
+        self.slowmode = 0                       #give a little time when changing the control lines
 
     def comInit(self, port):
         """Tries to open the serial port given and
@@ -436,6 +436,8 @@
         else:
             self.serialport.setDTR(level)
         if self.slowmode:
+            time.sleep(0.200)
+        else:
             time.sleep(0.010)
 
     def SetTESTpin(self, level=1):
@@ -445,6 +447,8 @@
         else:
             self.serialport.setRTS(level)
         if self.slowmode:
+            time.sleep(0.200)
+        else:
             time.sleep(0.010)
 
     def bslReset(self, invokeBSL=0):
@@ -459,6 +463,9 @@
         if DEBUG > 1: sys.stderr.write("* bslReset(invokeBSL=%s)\n" % invokeBSL)
         self.SetRSTpin(1)       #power suply
         self.SetTESTpin(1)      #power suply
+        if self.slowmode:
+            time.sleep(0.500)   #charge capacitor on boot loader hardware
+        else:
         time.sleep(0.250)       #charge capacitor on boot loader hardware
 
         self.SetRSTpin(0)       #RST  pin: GND



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.