CVS: python/msp430 bsl.py,1.3,1.4 jtag.py,1.7,1.8
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-serv11784/python/msp430
Modified Files:
bsl.py jtag.py
Log Message:
- implement --erase for the bsl too
- --erase now allows ranges of addresses
Index: bsl.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430/bsl.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- bsl.py 4 Nov 2004 13:22:34 -0000 1.3
+++ bsl.py 6 Nov 2004 00:15:48 -0000 1.4
@@ -736,6 +736,20 @@
address, #Any address within flash memory.
0xa502) #Required setting for segment erase!
+ def makeActionSegmentErase(self, address):
+ """Selective segment erase, the returned object can be called
+ to execute the action."""
+ class SegmentEraser:
+ def __init__(inner_self, segaddr):
+ inner_self.address = segaddr
+ def __call__(inner_self):
+ sys.stderr.write("Erase Segment @ 0x%04x...\n" % inner_self.address)
+ sys.stderr.flush()
+ self.actionSegmentErase(inner_self.address)
+ def __repr__(inner_self):
+ return "Erase Segment @ 0x%04x" % inner_self.address
+ return SegmentEraser(address)
+
def actionStartBSL(self, usepatch=1, adjsp=1, replacementBSL=None, forceBSL=0, mayuseBSL=0, speed=None, bslreset=1):
"""Start BSL, download patch if desired and needed, adjust SP if desired, download
replacement BSL, change baudrate."""
Index: jtag.py
===================================================================
RCS file: /cvsroot/mspgcc/python/msp430/jtag.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- jtag.py 29 Oct 2004 18:03:23 -0000 1.7
+++ jtag.py 6 Nov 2004 00:15:48 -0000 1.8
@@ -319,6 +319,8 @@
sys.stderr.write("Erase Segment @ 0x%04x...\n" % self.address)
sys.stderr.flush()
_parjtag.memerase(ERASE_SEGMENT, self.address)
+ def __repr__(self):
+ return "Erase Segment @ 0x%04x" % self.address
return SegmentEraser(address)
def actionEraseCheck(self):
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click