Install STM32Cube init code generator for Linux - https://www.st.com/en/development-tools/stm32cubemx.html#overview
This tool needs Python2 dev dependencies. If you got any issues, please run the following command in the Linux terminal
sudo apt install python2-minimal
Install SMT32CubeIDE -
sudo sh ./st-stm32cubeide_1.9.0_12015_20220302_0855_amd64.deb_bundle.sh
Install the xPack QEMU Arm binaries - https://xpack.github.io/qemu-arm/install/
Install xpm - https://xpack.github.io/xpm/install
Install ARM cross compiler - sudo apt install gcc-arm-none-eabi
Install QEMU debugger plugging ( Not necessarily)
Install PlatformIO plugging( This plugging has included STM32CubeMX)
STM32CubeMX CLion tools config
${HOME}/.local/xPacks/@xpack-dev-tools/qemu-arm/6.2.0-2.1/.content/bin/qemu-system-gnuarmeclipse --board STM32F4-Discovery \
--mcu STM32F407VG --gdb tcp::1234 -d unimp,guest_errors --image ./cmake-build-debug/test_embedded_project.elf