Try to flash STM32 with openocd from Ubuntu console
I try to flash my STM32 Boards with console.
What i try:
beowoolf@UbuntuVM:~/STM32Pro/F334R8Test/Debug$ ~/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux64_1.23.0.201904120827/tools/openocd/bin/openocd -f ~/STM32Pro/F334R8Test/F334R8Test\ Run.cfg -s ~/STM32Pro/F334R8Test/ -s ~/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.debug_2.5.0.201904120827/resources/openocd/st_scripts -c “program Debug/F334R8Test.elf verify reset exit”
/home/beowoolf/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux64_1.23.0.201904120827/tools/openocd/bin/openocd: error while loading shared libraries: libhidapi-hidraw.so.0: cannot open shared object file: No such file or directory
I also try to install openocd independently from Ac6:
beowoolf@UbuntuVM:~/STM32Pro/F334R8Test/Debug$ ~/opt/gnu-mcu-eclipse/openocd/0.10.0-12-20190422-2015/bin/openocd -d0 -f ~/STM32Pro/F334R8Test/F334R8Test\ Run.cfg -c “init;targets;halt;flash write_image erase F334R8Test.hex;shutdown”
GNU MCU Eclipse OpenOCD, 64-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-22-20:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 0
srst_only separate srst_nogate srst_open_drain connect_assert_srst
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
TargetName Type Endian TapName State
-- ------ ---- -- ------ ------
0* STM32F334R8Tx.cpu hla_target little STM32F334R8Tx.cpu reset
Error: timed out while waiting for target halted
Somebody know which command Ac6 use to Flash?
over UI of eclipse flashing is working.