pyocd / pyocd/pyOCD

LPC Link2 WSL2+usbipd error "array index out of range"

Open
#1,569 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

probe/cmsis-dap
Dominant language
Python
Stars
1.5k
Forks
560
Avg merge
1h 41m
Merged PRs (30d)
3

Description

I am using WSL2 with Ubuntu. To pass the USB devices to WSL I am using usbipd to attach the device so that it can be recognized when calling lsusb. After ensuring that the device is available in WSL, I try running pyocd list to see if my device is available. I am using an LPC Link2 Debugger with LPC54102 MCU.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce pyocd list under WSL2 with Ubuntu, usbipd, and the LPC Link2/LPC54102 setup, capturing the complete error and environment details. Trace the device-enumeration path that produces the array-index failure; done means pyocd list recognizes the debugger without raising the exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, ubuntu
Domain
devtools, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.