Skip to content

Can't get Debugging to work #331

Answered by karlscholz
karlscholz asked this question in Q&A
Discussion options

You must be logged in to vote

TL:DR: Downgrade your Cortex-Debug Extension to Version 1.2.2

Debugging in WSL requires a bit more:

Install usbipd

Windows Powershell(Admin):

  • winget install --interactive --exact dorssel.usbipd-win

WSL:

  • sudo apt install linux-tools-5.4.0-77-generic hwdata sudo update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/5.4.0-77-generic/usbip 20

Windows Powershell(Admin):

  • usbipd wsl list
  • usbipd wsl attach -b <busid of ST-Link>

chmod the usb device, so cortex debug can access it without sudo rights

sudo chmod +666 /dev/bus/usb/<busid, see lsusb>/<deviceid, see lsusb>

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@karlscholz
Comment options

@karlscholz
Comment options

@knmcguire
Comment options

@knmcguire
Comment options

@karlscholz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by karlscholz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants