I cloned the pyusb and pyOCD, and installed those.
Connected K64F board.
sudo python test/gdb_server.py
Welcome to the PyOCD GDB Server Beta Version
INFO:root:Waiting for a USB device connected
uncaught exception: The device does not support the specified langid
Traceback (most recent call last):
File "test/gdb_server.py", line 62, in <module>
board_selected = MbedBoard.chooseBoard(board_id = option.board_id, target_override = option.target_override, frequency = option.debug_clock_frequency)
File "/usr/local/lib/python2.7/dist-packages/pyOCD/board/mbed_board.py", line 201, in chooseBoard
all_mbeds = MbedBoard.getAllConnectedBoards(transport, False, blocking, target_override, frequency)
File "/usr/local/lib/python2.7/dist-packages/pyOCD/board/mbed_board.py", line 148, in getAllConnectedBoards
all_mbeds = INTERFACE[usb_backend].getAllConnectedInterface(mbed_vid, mbed_pid)
File "/usr/local/lib/python2.7/dist-packages/pyOCD/interface/pyusb_backend.py", line 111, in getAllConnectedInterface
product_name = usb.util.get_string(board, 256, 2)
File "/usr/local/lib/python2.7/dist-packages/usb/util.py", line 328, in get_string
raise ValueError("The device does not support the specified langid")
ValueError: The device does not support the specified langid
—
Reply to this email directly or view it on GitHub.![]()
I just wonder what firmware does you board have, the latest ?
I tested and it worked, with
Version: 0221
Build: Jan 7 2015 02:30:03
Check this
walac/pyusb@dac7893
You have extra parameter in
https://github.com/mbedmicro/pyOCD/blob/master/pyOCD/interface/pyusb_backend.py#L111
Seppo thanks for some more context. For reference, this is the PR to pyusb which introduces the error message reported walac/pyusb#99
Thanks for reporting ! I sent a PR which should fix this issue.
Closed #138.