#include "platform.h"
#include "command.h"
-#include "jtag.h"
+#include "jtag430.h"
unsigned int jtag430mode=MSP430X2MODE;
//! Release the CPU
void jtag430_releasecpu(){
CLRTCLK;
- debugstr("Releasing target MSP430.");
+ //debugstr("Releasing target MSP430.");
/*
jtag_ir_shift8(IR_CNTRL_SIG_16BIT);
unsigned long at;
unsigned int i, val;
- //debugstr("Classic MSP430 handler.");
-
/* FIXME
* Sometimes JTAG doesn't init correctly.
while((i=jtag430_readmem(0xff0))==0xFFFF){
debugstr("Reconnecting to target MSP430.");
jtag430_start();
- P1OUT^=1;
+ PLEDOUT^=PLEDPIN;
}
- P1OUT&=~1;
+ PLEDOUT&=~PLEDPIN;
switch(verb){
break;
case JTAG430_SETPC:
jtag430_haltcpu();
- debughex("Setting PC.");
- debughex(cmddataword[0]);
+ //debughex("Setting PC.");
+ //debughex(cmddataword[0]);
jtag430_setpc(cmddataword[0]);
jtag430_releasecpu();
txdata(app,verb,0);