CVS: jtag/msp430 JTAGfunc.c, 1.10, 1.11 MSP430mspgcc.c, 1.20, 1.21 MSP430mspgcc.def, 1.4, 1.5 funclets.c, 1.21, 1.22 funclets.h, 1.9, 1.10
Chris Liechti <[email protected]> Sat, 09 Sep 2006 16:48:16 -0700
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/jtag/msp430
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv20420/jtag/msp430
Modified Files:
JTAGfunc.c MSP430mspgcc.c MSP430mspgcc.def funclets.c
funclets.h
Log Message:
add public function to read address bus
Index: JTAGfunc.c
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/JTAGfunc.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -w -d -r1.10 -r1.11
--- JTAGfunc.c 22 Apr 2006 22:07:58 -0000 1.10
+++ JTAGfunc.c 9 Sep 2006 23:48:14 -0000 1.11
@@ -337,7 +337,7 @@
MSP430_Log(8, "VerifyPSA(0x%04x, %d, %s)\n",
StartAddr,
Length,
- (DataArray == 0) ? "erase check" : "check against data"
+ (DataArray == NULL) ? "erase check" : "check against data"
); // DEBUG
ExecutePUC();
@@ -366,7 +366,7 @@
PSA_CRC <<= 1;
}
// if pointer is 0 then use erase check mask, otherwise data
- (DataArray == 0) ? (PSA_CRC ^= 0xFFFF) : (PSA_CRC ^= DataArray[i]);
+ (DataArray == NULL) ? (PSA_CRC ^= 0xFFFF) : (PSA_CRC ^= DataArray[i]);
// Clock through the PSA
SetTCLK();
@@ -447,7 +447,7 @@
HIL_JTAG_IR(IR_DATA_QUICK);
for (i = 0; i < Length; i++) {
HIL_JTAG_DR(DataArray[i], F_WORD); // Write data to memory.
- HIL_TCLK(NEG_EDGE);
+ HIL_TCLK(NEG_EDGE); // Increment PC by 2
}
HIL_TCLK(1);
ReleaseCPU();
Index: MSP430mspgcc.c
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/MSP430mspgcc.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -w -d -r1.20 -r1.21
--- MSP430mspgcc.c 1 May 2006 22:56:39 -0000 1.20
+++ MSP430mspgcc.c 9 Sep 2006 23:48:14 -0000 1.21
@@ -775,6 +775,15 @@
}
/* ----------------------------------------------------------------------------
+Check if the CPU is stuck on an address. This can be because it's executing a
+"jmp $" or it's in the lowpower mode. Use at your own risk, may not work in any
+case!?
+*/
+LONG WINAPI MSP430_readMAB(void) {
+ return readMab();
+}
+
+/* ----------------------------------------------------------------------------
Output debug messages
There messages are dumped if they are smaller than the given debug level.
Index: MSP430mspgcc.def
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/MSP430mspgcc.def,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- MSP430mspgcc.def 27 Dec 2005 01:12:11 -0000 1.4
+++ MSP430mspgcc.def 9 Sep 2006 23:48:14 -0000 1.5
@@ -19,6 +19,7 @@
MSP430_ReadRegister@8
MSP430_WriteRegister@8
MSP430_isHalted@0
+MSP430_readMAB@0
MSP430_Initialize = MSP430_Initialize@8
MSP430_Open = MSP430_Open@0
@@ -37,3 +38,4 @@
MSP430_ReadRegister = MSP430_ReadRegister@8
MSP430_WriteRegister = MSP430_WriteRegister@8
MSP430_isHalted = MSP430_isHalted@0
\ No newline at end of file
+MSP430_readMAB = MSP430_readMAB@0
\ No newline at end of file
Index: funclets.c
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/funclets.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -d -r1.21 -r1.22
--- funclets.c 22 Apr 2006 22:32:10 -0000 1.21
+++ funclets.c 9 Sep 2006 23:48:14 -0000 1.22
@@ -232,7 +232,7 @@
* is a probable mean to check if the CPU waits on a "jmp $" insn.
* Used in the executeCode functions.
*/
-static WORD readMab(void) {
+WORD readMab(void) {
HIL_JTAG_IR(IR_ADDR_CAPTURE);
return (WORD)HIL_JTAG_DR(0, 16);
}
Index: funclets.h
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/funclets.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -w -d -r1.9 -r1.10
--- funclets.h 27 Dec 2005 16:20:03 -0000 1.9
+++ funclets.h 9 Sep 2006 23:48:14 -0000 1.10
@@ -13,4 +13,5 @@
STATUS_T syncCPU(void);
STATUS_T executeCode(const WORD* code, WORD sizeCode, BOOL verify, ULONG wait, ULONG *runtime);
int isHalted(void);
+WORD readMab(void);
#endif //FUNCLETS_H
-------------------------------------------------------------------------
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