Hello.
Thank you for interest of my problem.
As fpiSTM say, y use Arduino_STM32-master, which is in hardware directorie of Arduino system. Before say the complete processing, i would repeat that it's not a problem for STM32F1xx wich can be flash by UART1 but for STM32F4xx wich can be flash only whith STlibnk v2 key. But for simplify, i've the same fail when i want flash a STM32F1xx ( chinese blue pill) with STlibnk v2 key and example after is with a STM32F407VE board.
Hardware linkage :
STLink key F407VE board
RST x
SWCLK SWCLK
SWDIO SWDIO
GND GND
3.3v 3.3v
Arduino IDE field "Type of board" = Generic STM32F407v series
Arduino IDE field "USB configuration" = USB serial (CDC)
First power up, with BOOT0 on GND ->
STLink key = Blue LED ON
F407VE = power LED ON and LED 2 and 3 BLINK
Arduino IDE, field "port" = grey - field "upload method" = STLink
Linux system command "lsusb" =
Code: Select all
ID 0483:3748 STMicroelectronics ST-LINK/V2
Linux system symbolic link ( /dev) = stlinkv2_5 ( as 49-stlinkv2.rules file say - Roger Clark install system)
Perhaps Arduino IDE would have ttyUSB0 symbolic link ?
Second power up, with BOOT0 on 3.3v + Reset button one shot ->
STLink key = Blue LED ON
F407VE = power LED ON and LED 2 and 3 OFF
Arduino IDE, field "port" = grey - field "upload method" = STLink
Linux system command "lsusb" =
Code: Select all
ID 0483:3748 STMicroelectronics ST-LINK/V2
Linux system symbolic link ( /dev) = stlinkv2_5 ( as 49-stlinkv2.rules file say - Roger Clark install system)
Try sequence with blink example file and clic on upload Arduino IDE button :
Code: Select all
Le croquis utilise 18040 octets (3%) de l'espace de stockage de programmes. Le maximum est de 514288 octets.
Les variables globales utilisent 5544 octets (4%) de mémoire dynamique, ce qui laisse 125528 octets pour les variables locales. Le maximum est de 131072 octets.
/media/jean/Trav_01/Electronik/Arduino/Arduino_sys/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
No LED blink ( STLink key or board) but, for me, it's correct because Arduino IDE dont know the port of communication ( Arduino IDE, field "port" = grey ).
So, i don't know where is THE problem !