CVS: jtag/msp430 funclets.c,1.18,1.19

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

Modified Files:
	funclets.c 
Log Message:
ensure that error state is reported after all retries with flash write errors

Index: funclets.c
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/funclets.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -w -d -r1.18 -r1.19
--- funclets.c	10 Mar 2006 03:42:14 -0000	1.18
+++ funclets.c	21 Apr 2006 23:28:40 -0000	1.19
@@ -50,6 +50,7 @@
                 if (STATUS_OK == GetReg(15, &funclet_result)) {
                     if (funclet_result) {               //read return value
                         MSP430_Log(1, "funclets: programFlash: Flash write error in block @0x%04x\n", address);
+                        res = STATUS_ERROR;
                     } else {
                         // funclet returned success
                         break;
@@ -71,7 +72,11 @@
         }
     }
     free(code);                                                         // clean up memory
+    if (STATUS_OK == res) {
     MSP430_Log(2, "funclets: programFlash: Flash write finished\n");
+    } else {
+        MSP430_Log(2, "funclets: programFlash: Flash write failed\n");
+    }
     return res;
 }
 



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