aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Host
diff options
context:
space:
mode:
Diffstat (limited to 'AT91SAM7S256/armdebug/Host')
-rw-r--r--AT91SAM7S256/armdebug/Host/README11
-rwxr-xr-xAT91SAM7S256/armdebug/Host/nxt-gdb-server.py4
2 files changed, 10 insertions, 5 deletions
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