From 99b10c16afa405e76defbfd30b21296cbd4fa624 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 8 Sep 2012 23:45:18 +0200 Subject: merge armdebug d881039 --- AT91SAM7S256/armdebug/Host/README | 11 ++++++++--- AT91SAM7S256/armdebug/Host/nxt-gdb-server.py | 4 ++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'AT91SAM7S256/armdebug/Host') diff --git a/AT91SAM7S256/armdebug/Host/README b/AT91SAM7S256/armdebug/Host/README index 23d95c9..1b6537e 100644 --- a/AT91SAM7S256/armdebug/Host/README +++ b/AT91SAM7S256/armdebug/Host/README @@ -1,12 +1,17 @@ The nxt-gdb-server.py script is initially developed by Nicolas Schodet. It depends on the following libraries: - - nxt-python v2.1.x http://code.google.com/p/nxt-python/ + - nxt-python v2.2.x http://code.google.com/p/nxt-python/ + +Additional Dependencies For Windows and MacOSX: + - Fantom Drivers from LEGO + +Additional Dependencies For Linux: - pyusb v0.4x http://pyusb.wiki.sourceforge.net - libusb v0.1.x http://libusb.org/ -Currently, it does not work with libusb v1.x, on Mac OSX, it causes segfaults. - + Currently, it does not work with libusb v1.x; on Mac OSX, it causes segfaults. + Installation ============ diff --git a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py index 197c27a..03a95d3 100755 --- a/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py +++ b/AT91SAM7S256/armdebug/Host/nxt-gdb-server.py @@ -148,7 +148,7 @@ class NXTGDBServer: assert segno == prev_segno + 1, "segno = %s, prev_segno = %s" % (segno, prev_segno) prev_segno = segno msg += s - except usb.USBError as e: + except IOError as e: # Some pyusb are buggy, ignore some "errors". if e.args != ('No error', ): raise e @@ -198,7 +198,7 @@ class NXTGDBServer: for seg in segments: try: self.brick.sock.send (seg) - except usb.USBError as e: + except IOError as e: # Some pyusb are buggy, ignore some "errors". if e.args != ('No error', ): raise e -- cgit v1.2.3