2020-08-12 08:16 PM
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 ***
2020-08-12 11:00 PM
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:
2020-08-12 11:00 PM
2024-03-26 09:09 AM - edited 2024-03-26 09:10 AM
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:
Then "Set Default" on this new entry.