C

Getting started on STM

Overview

This topic provides common instructions for the STM platforms supported by Qt Quick Ultralite

Prerequisites

  • Download Qt Online installer from Qt account and use it to install Qt for MCUs package.
  • Create the Qul_DIR environment variable and set its value to
    <QT_INSTALL_PATH>\QtMCUs\<VERSION>

    where,

    • <QT_INSTALL_PATH> is the Qt install directory,
    • and <VERSION> is the directory containing the Qt Quick Ultralite version you are using, for example 1.1.0.
  • Install CMake 3.13 or (newer) and update the System PATH
    • CMake can be installed by the Qt Installer. In that case, the System PATH needs to updated with the following entry
      <QT_INSTALL_PATH>\Tools\CMake_<ARCH>\bin

      where,

      • <QT_INSTALL_PATH> is the Qt install directory,
      • and <ARCH> is the directory name suffix depending on machine's architecture, for example 64
    • For manual installation, download and run CMake installer
      • Remember to select Add CMake to the System PATH for all users or Add CMake to the System PATH for the current user while installing CMake.
  • Install Ninja 1.10.0 ( or newer ) and update the System PATH
    • Ninja can be installed by the Qt Installer. In that case, the System PATH needs to updated with the following entry
      <QT_INSTALL_PATH>\Tools\Ninja

      where,

      • <QT_INSTALL_PATH> is the Qt install directory
    • For manual installation, download and unpack Ninja to your desired location
      • Add the following entry to the System PATH
        <NINJA_INSTALL_PATH>

        where, <NINJA_INSTALL_PATH> is the path to the directory to which you've extracted ninja.zip

    Note: Ninja Build is optional and can be replaced with other build system.

  • Install ARM Toolchain 8-2019-q3-update and create the ARMGCC_DIR environment variable (Download)
    • The ARMGCC_DIR environment variable should point to the directory where the ARM Toolchain is installed.

      Warning: Ensure that the ARMGCC_DIR choosen during the installation process do not contain any spaces!

  • Install STM32CubeProg 2.4.0 ( or newer ) ( Download )
    • Make sure to install CubeProgrammer in the default location ( C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\ ) or add install directory to System PATH
  • Install STM32CubeIDE and update the System PATH ( Download )
    • Add ST-LINK_gdbserver.exe directory to System PATH
      <STM32_CUBE_IDE_INSTALL_PATH>\stm32cubeide_1.3.0\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_1.3.0.202002181050\tools\bin

      where, <STM32_CUBE_IDE_INSTALL_PATH> is the Cube IDE install path.

    Note: STM32CubeIDE is optional and required only for on-chip debugging purposes

Board-specific instructions

Hardware boardMCUCompilerOperating system(s)
STM32F769I-DISCOVERYSTM32F769NIGNU Arm 8Bare Metal, FreeRTOS (Tech preview)
STM32F7508-DISCOVERYSTM32F750N8H6GNU Arm 8Bare Metal, FreeRTOS (Tech preview)
STM32H750B-DISCOVERYSTM32H750XBGNU Arm 8Bare Metal
STM32L4R9I-DISCOSTM32L4R9AII6GNU Arm 8Bare Metal
STM32L4R9I-EVALSTM32L4R9AII6GNU Arm 8Bare Metal
STM32F469I-DISCOVERYSTM32F469NIGNU Arm 8Bare Metal

Available under certain Qt licenses.
Find out more.