This repository is a tutorial and an example how to setup QtCreator environment for bare metal devices (STM32 ARM). This readme will describe a tutorial on how to tune up QtCreator, using OpenOCD for on-chip debugging, create a project with STM32CubeMX and import it into QtCreator. Here you can find the final project (usb_vcp) for STM32F4DISCOVERY board.
- QtCreator
- ARM GCC
- GDB
- OpenOCD
- STM32CubeMX
QtCreator:
Download from QT site and install.
ARM GCC:
Open in terminal and run:
sudo apt-get install gcc-arm-none-eabi
or download and extract it from launchpad
GDB:
There is need an arm gdb with python scripting support.
Download it from the download archives.
Extract the source archive.
Open in terminal and run:
./configure --with-python --target=arm-elf
make
When compilation done you can find the gdb executable in the main directory.
Another way is to use arm-none-eabi-gdb-py from gcc toolchain.
OpenOCD:
Open in terminal and run:
sudo apt-get install openocd
or download and install from OpenOCD site
STM32CubeMX:
Download from STMicroelectronics site and install.
All is running on Linux Ubuntu 16.04. It should be similar for other Linux distributions or versions.