cancel
Showing results for 
Search instead for 
Did you mean: 

The latest stm32 cube vscode extention (preview) does not provide any cli(CLT) tools for debugging on Ubuntu

brucegong
Associate II

Newly installed Ubuntu 25.04

Newly installed VSCode with STM32Cube for Visual Studio Code(preview)

The project generated by STM32CubeMX can be compiled, but cannot be debugged.

截图 2025-08-10 20-47-56.png

 

 

 

 

2 REPLIES 2
brucegong
Associate II

more information:

It seems that the preview version of the tool cannot get the permission to open st-link. However, it also does not prompt for sudo privileges.

 

STMicroelectronics ST-LINK GDB server. Version 7.10.0
Copyright (c) 2025, STMicroelectronics. All rights reserved.

Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 8
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled

libusb: error [get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/006, errno=13
libusb: error [get_usbfs_fd] libusb requires write access to USB device nodes
ST-Link enumeration failed

Error in initializing ST-LINK device.
Reason: ST-LINK DLL error.
cube has exited with code 2GNU gdb (GNU Tools for STM32 13.3.rel1.20250523-0900) 14.2.90.20240526-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

brucegong
Associate II

Sorry guys ,it is my fault.

 

sudo chmod 0666 /dev/bus/usb/001/006 

 

and debug is OK