cancel
Showing results for 
Search instead for 
Did you mean: 

[LINUX] St-link V2 does not work after installing IDE 1.4 (BUG?)

Not applicable

After installing Linux Ubuntu, I installed STM32CubeIDE 1.4 and this message appeared when trying to access the firmware update:

"Access to ST-Link was denied by the system..."

Then I found this post:

Installing ST-Link v2 to flash STM32 targets on Linux

https://freeelectron.ro/installing-st-link-v2-to-flash-stm32-targets-on-linux/

When trying to execute the first statement,

sudo apt-get install git make cmake libusb-1.0-0-dev

an error occurred:

 st-stm32cubeide-1.4.0 : Depends: ca-certificates-java but it is not going to be installed

E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

That has been fixed with the suggested command (apt --fix-broken install):

done.

done.

Setting up st-stm32cubeide-1.4.0 (1.4.0-7511-20200720-0928-1) ...

After performing all commands correctly in the post about driver installation, ST-Link was recognized correctly by the IDE.

*** Tip for those who want to try to make this IDE work ***

3 REPLIES 3
Not applicable

Another error then occurred:

Could not determine GDB version using command: arm-none-eabi-gdb --version...

Solved with the command:

sudo apt-get install libncurses5

Source:

https://stackoverflow.com/questions/39831575/could-not-determine-gdb-version-after-sending-arm-none-eabi-gdb-version-resp

Not applicable
 
pkoevesdi
Senior

On Ubuntu 23.04 I encountered the same problem, but `libncurses5` cannot be installed anymore.

New Solution:

`sudo apt install gdb-multiarch`

And then go to "Window" -> "Preferences" -> "Toolchain Manager" -> "Add Local" and set it up like this:

pkoevesdi_0-1711469167502.png

Then "Set Default" on this new entry.