Skip to content

Dr-Sergey/arm-stm32-cube-qtcreator-openocd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QtCreator environment for STM32 32-bit ARM Cortex MCUs

    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.

Prerequisites

  • 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.

Tutorials and Examples

About

Tutorial and examples how to setup Qt Creator environment for bare metal devices (stm32 ARM)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages