[SOLVED]Imposible to flash with STLink v2 key ( STM32F1xx and STM32F4xx)
Posted: Wed Jun 02, 2021 2:27 pm
Hello.
Since most days, i try to flash STM32 boards with STLink key ( v2) and STM32duino last version ( recently uploaded).
My PC ( intel i7 - 16GB RAM ...) run with Linux Ubuntu 20.04.2 64 bits.
All the Arduino files are installed on a USB drive in portable mode. STM32duino is installed in this hard USB drive, in "hardware" directories of Arduino 1-8-13 system.
Flash is OK with USB-Serial converter ( FTDI) on Maple mini and Blue pils.
When i want use STLink key, it's failing. "Port" field of the IDE stay in grey. The STLink key is recognize bye the OS and benefit of number 49 udev rule.
On terminal, STM32duino IDE say :
I'd installed libusb-1.0-dev librarie but same issue.
If this problem is not important for STM32F1xx witch can be flashed in serial mode, it's more badly with STM32F4xx whitch can only be fashed with stlink key ... and it's my project !
Since most days, i try to flash STM32 boards with STLink key ( v2) and STM32duino last version ( recently uploaded).
My PC ( intel i7 - 16GB RAM ...) run with Linux Ubuntu 20.04.2 64 bits.
All the Arduino files are installed on a USB drive in portable mode. STM32duino is installed in this hard USB drive, in "hardware" directories of Arduino 1-8-13 system.
Flash is OK with USB-Serial converter ( FTDI) on Maple mini and Blue pils.
When i want use STLink key, it's failing. "Port" field of the IDE stay in grey. The STLink key is recognize bye the OS and benefit of number 49 udev rule.
On terminal, STM32duino IDE say :
Code: Select all
arduino-1.8.13/hardware/Arduino_STM32-master/tools/linux/stlink/st-flash: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory
If this problem is not important for STM32F1xx witch can be flashed in serial mode, it's more badly with STM32F4xx whitch can only be fashed with stlink key ... and it's my project !