self.SRF_loadsymbols();
self.haveloadedsymbols=True;
except:
- print "SmartRF not found for this chip.";
+ print "SmartRF not found for this chip.\nInstall it with wine and symlink to /opt/smartrf7 .";
def SRF_chipdom(self,chip="cc1110", doc="register_definition.xml"):
"""Loads the chip XML definitions from SmartRF7."""
fn="%s/config/xml/%s/%s" % (self.smartrfpath,chip,doc);
h=IntelHex(filename);
for i in h._buf.keys():
self.CCpokedatabyte(i,h[i]);
-
#Execute it.
self.CCdebuginstr([0x02, 0xf0, 0x00]); #ljmp 0xF000
self.resume();
while wait>0 and (0==self.CCstatus()&0x20):
a=1;
- #time.sleep(0.1);
#print "Waiting for shell code to return.";
return;
def ishalted(self):
ident=self.CCident();
#Get SmartRF Studio regs if they exist.
self.loadsymbols();
- print "Status: %s" % self.status();
+ #print "Status: %s" % self.status();
def stop(self):
"""Stop debugging."""
self.writecmd(self.APP,0x21,0,self.data);