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 example1.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 example64
- 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.
- Remember to select Add CMake to the
- CMake can be installed by the Qt Installer. In that case, the
- 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
- Add the following entry to the
Note: Ninja Build is optional and can be replaced with other build system.
- Ninja can be installed by the Qt Installer. In that case, the
- 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!
- The
- 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 toSystem PATH
- Make sure to install CubeProgrammer in the default location (
- 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
- Add ST-LINK_gdbserver.exe directory to
Board-specific instructions
Hardware board | MCU | Compiler | Operating system(s) |
---|---|---|---|
STM32F769I-DISCOVERY | STM32F769NI | GNU Arm 8 | Bare Metal, FreeRTOS (Tech preview) |
STM32F7508-DISCOVERY | STM32F750N8H6 | GNU Arm 8 | Bare Metal, FreeRTOS (Tech preview) |
STM32H750B-DISCOVERY | STM32H750XB | GNU Arm 8 | Bare Metal |
STM32L4R9I-DISCO | STM32L4R9AII6 | GNU Arm 8 | Bare Metal |
STM32L4R9I-EVAL | STM32L4R9AII6 | GNU Arm 8 | Bare Metal |
STM32F469I-DISCOVERY | STM32F469NI | GNU Arm 8 | Bare Metal |
Available under certain Qt licenses.
Find out more.