CVS: jtag/funclets progFlash.S,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/jtag/funclets
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9413/jtag/funclets

Modified Files:
	progFlash.S 
Log Message:
have to chenge order, LOCK must be set as last action

Index: progFlash.S
===================================================================
RCS file: /cvsroot/mspgcc/jtag/funclets/progFlash.S,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- progFlash.S	13 Apr 2006 20:14:01 -0000	1.7
+++ progFlash.S	13 Apr 2006 20:18:11 -0000	1.8
@@ -59,7 +59,6 @@
 .LWait: bit     #BUSY, &FCTL3           ; Wait for completion of write.
         jnz     .LWait                  ; Busy bit is cleared upon completion.
         mov     #FWKEY, &FCTL1          ; Reset writing to flash.
-        mov     #FWKEY|LOCK, &FCTL3     ; Clear BUSY, set LOCK bits.
         cmp     @R10, 0(r9)             ; Verify written data.
         jne     stop                    ; Verification failure
 .LNext: incd    r10                     ; Advance source pointer.
@@ -75,6 +74,8 @@
 .Llocked:
         ; SegmentA is locked
 
+        mov     #FWKEY|LOCK, &FCTL3     ; Clear BUSY, set LOCK bits.
+
 stop:   jmp     stop                    ; Wait here until detected by driver.
 
 buffer:                                 ; data follows, appended by driver



-------------------------------------------------------
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
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.