Can't get Debugging to work #331
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
afterburner: forgot to show my launch.json file, it looks like this:
|
Beta Was this translation helpful? Give feedback.
-
Debugging from the stm is perhaps not really advised... especially if you have performance issues. The USB readout is probably not fast enough. You could perhaps try the USBipd project to connect it to WSL on windows? Or if you perhaps have a native ubuntu machine somewhere? |
Beta Was this translation helpful? Give feedback.
-
TL:DR: Downgrade your Cortex-Debug Extension to Version 1.2.2Debugging in WSL requires a bit more:Install usbipdWindows Powershell(Admin):
WSL:
Windows Powershell(Admin):
chmod the usb device, so cortex debug can access it without sudo rights
|
Beta Was this translation helpful? Give feedback.
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>