


In your STM32CubeMX project choose "Makefile" as your "Toolchain / IDE" in the "Project" tab of the "Project Settings" window build/Ĭonfigure the Qbs profile for the newly added Kit If Qt Creator has already detected your GCC ARM compilers (for C and C++) then you can skip this step and use the automatically detected ones in the next stepĬreate a new Kit using the added device type, debugger and compilers, then make the kit as defaultĬhoose the Projects Directory as you wish, but make sure to change the Default build directory to the build directory of the project's directory, instead of an upper directory, by replacing the.If Qt Creator has already detected your GCC ARM GDB debugger then you can skip this step and use the automatically detected one in the next stepsĭepending on your system, you should use either one of arm-none-eabi-gdb or gdb-multiarch binaries (whichever you have) if you have neither of those then it's possbile that your standard gdb binary comes with "multiarch" support built-in so you can just use it insteadĪdd two new compiler binaries for C and C++ You may want to try using one of the available startup modes if you don't like starting up an OpenOCD session manuallyĪdd a new Device type named ST-Link v2 and set its GDB Server Provider the previously created OpenOCD item Start the OpenOCD session manually (recommended) Qt Creator Configuration ScreenshotsĪdd and configure OpenOCD as a GDB Server Provider for BareMetal projects Make sure to configure Qt Creator as shown in the screenshots below. Run pacman -S gcc gdb arm-none-eabi-binutils arm-none-eabi-gcc arm-none-eabi-gdb arm-none-eabi-newlib openocd qtcreator.
Qt creator 9 install#
Run sudo apt install gcc gcc-arm-none-eabi gdb gdbserver gdb-multiarch binutils-arm-none-eabi openocd libnewlib-dev libnewlib-doc libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib newlib-source

Qt creator 9 download#
Next, you can try to use the default Qt Creator version from Ubuntu repositories by executing sudo apt install qtcreator qtcreator-doc qbs, or you can download and install Qt Creator from its official web-site (recommended) Run sudo apt install gcc gcc-arm-none-eabi gdb gdbserver gdb-arm-none-eabi binutils-arm-none-eabi openocd libnewlib-dev libnewlib-doc libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib newlib-source These templates are supposed to work correctly at least on fully updated Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Arch Linux operating systems using Qt Creator 4.6 or later versions.
Qt creator 9 software#
To use these templates you will need to install the Qt Creator, GNU ARM Embedded Toolchain, OpenOCD software packages and the Newlib C standard library into your system. The aim of this project is to simplify using the Qt Creator IDE with its BareMetal plugin to program, compile and debug STM32 microcontroller projects generated by the STM32CubeMX software. Qube - Qt Creator "Bare-Metal" Qbs Project Templates for STM32 Development with STM32CubeMX Brief
