cadsPasted latest version C:\Users\Dell\Documents\Arduino\PB_SketchApril12\CDP1802e1\CDP1802e1.ino to Pastebin, in background. Also you can see serial terminal work in Bray terminal as well as list of terminal commands that can be sent to Arduino. There is an interpretb funcition that acts of command like singlestep etc. Viz:
--------------------------------------------------------------------------------------
void interpretCommand() {
String Command(receivedChars); //**important
if(Command.equals("gf")){
Serial.print("Getting File");
getFile();
serialFlush();
Serial.println("**done gf flush** Now resetting");
doReset();
}
if(Command.equals("dk")){
dumpVariableVert(1024);
serialFlush();
Serial.println("**done dkflush**");
}
if(Command.equals("du")){
dumpVariableVert(256);
serialFlush();
Serial.println("**done duflush**");
}
if(Command.equals("re")){
doReset();
TPBCtr=0; clkCtr = 0;
serialFlush();
Serial.println("**did reset flush**");
}
if((receivedBytes[0]==0x62)&&(receivedBytes[1]==0x70)) doBreakPoint2(); //<bpxxxx>
if((receivedBytes[0]==0x6f)&&(receivedBytes[1]==0x70)) doOpStop2();
......etc.......
---------------------------------------------------------------------------------------------
No comments:
Post a Comment