CVS: jtag/funclets progFlash.S,1.8,1.9
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/jtag/funclets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28694/jtag/funclets
Modified Files:
progFlash.S
Log Message:
save four bytes -> more payload for slightly faster downloads
Index: progFlash.S
===================================================================
RCS file: /cvsroot/mspgcc/jtag/funclets/progFlash.S,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- progFlash.S 13 Apr 2006 20:18:11 -0000 1.8
+++ progFlash.S 22 Apr 2006 21:58:29 -0000 1.9
@@ -30,7 +30,6 @@
main: mov #WDTPW|WDTHOLD, &WDTCTL ; Disable Watchdog.
dint ; Disable interrupts.
mov srinit, r2 ; Initialize status register (Possibly disable FLL+).
- mov #0xffff, r15 ; R15 is used as return value -> error
mov #FWKEY|0x44, &FCTL2 ; Source = MCLK, DIV = 5.
mov #FWKEY, &FCTL3 ; Clear bits.
mov addr, r9 ; Address to program.
@@ -60,13 +59,13 @@
jnz .LWait ; Busy bit is cleared upon completion.
mov #FWKEY, &FCTL1 ; Reset writing to flash.
cmp @R10, 0(r9) ; Verify written data.
- jne stop ; Verification failure
+ jne abort ; Verification failure
.LNext: incd r10 ; Advance source pointer.
incd r9 ; Advance destination pointer.
dec r8 ; Decrement word counter.
jnz .LProg ; Program Length words.
- clr R15 ; set return value -> OK
+abort:
; Lock SegmentA again (F2xx)
bit #LOCKA, &FCTL3 ; Test LOCKA
jnz .Llocked ; Already locked?
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642