[pyOCD] ValueError: The device does not support the specified langid (#138)

165 views
Skip to first unread message

Seppo Takalo

unread,
May 22, 2015, 3:46:13 AM5/22/15
to mbedmicro/pyOCD

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.

Martin Kojtal

unread,
May 22, 2015, 4:00:32 AM5/22/15
to mbedmicro/pyOCD

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

Seppo Takalo

unread,
May 22, 2015, 4:07:23 AM5/22/15
to mbedmicro/pyOCD

Martin Kojtal

unread,
May 22, 2015, 4:08:24 AM5/22/15
to mbedmicro/pyOCD

Seppo thanks for some more context. For reference, this is the PR to pyusb which introduces the error message reported walac/pyusb#99

Martin Kojtal

unread,
May 22, 2015, 4:56:18 AM5/22/15
to mbedmicro/pyOCD

Thanks for reporting ! I sent a PR which should fix this issue.

Martin Kojtal

unread,
May 22, 2015, 4:57:29 AM5/22/15
to mbedmicro/pyOCD

Closed #138.

Reply all
Reply to author
Forward
0 new messages