STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32

Try to flash STM32 with openocd from Ubuntu console


To run openocd from System Workbench for STM32 on a external console, you need to indicate the openocd shared libraries location (eg. export LD_LIBRARY_PATH=~/Ac6/SystemWorkbench/plugins/fr.ac6.mcu.externaltools.openocd.linux64_1.23.0.201904120827/tools/openocd/bin/openocd/lib:$LD_LIBRARY_PATH) then you can run the openocd command.

Our version of OpenOCD was modified to be adapted to ST latest targets as early as possible. The generated configuration scripts are not compatible with other OpenOCD versions.

Sorry for late reply, hope it helps.