- print "Stopping debug..."
- self.writecmd(self.APP, STOP, 0, self.data)
-
- def get_id(self):
- """Get the Chip ID."""
-
- # send the get chip ID command
- self.writecmd(self.APP, GET_CHIP_ID, 0, [])
-
- # get the response
- ident = struct.unpack("<L", "".join(self.data[0:4]))[0]
-
- version = ident >> 28
- part_number = (ident >> 12) & 0x10
- manufacturer = ident & 0xFFF
-
- print "XScale ID --\n\tmfg: %x\n\tpart: %x\n\tver: %x\n\t(%x)" % (version, part_number, manufacturer, ident)
+ sys.stdout.write("Stopping session...")
+ self.writecmd(self.APP, STOP)
+ self._check_return(STOP)