Getting started on STM
This topic provides an overview of the STM platforms supported by Qt Quick Ultralite
Assuming that you have all the prerequisites installed, follow these instructions configure the Qt Creator IDE for STM boards:
To develop for MCUs using the Qt Creator IDE, the MCU plugin is required. The Qt online installer enables it by default when you install the Qt for MCUs SDK.
To enable or disable the plugin, follow these instructions:
- Select Help > About Plugins and choose the MCU Support plugin from the list.
- Restart Qt Creator to apply changes
To build and run your application on MCUs, you must create a kit:
- Select Tools > Options > Devices > MCU
- If not already set, provide the path to the Qt for MCUs installation directory.
- Select a Target supported by the Qt for MCUs SDK. For example, Qt for MCUs 1.9 - Desktop 32bpp.
- In the Requirements section, ensure that the platform-specific requirements are met.
- Select Automatically create kits for all available targets on start to create kits automatically.
Note: You could also manually create/remove kits using Create Kit and Remove Kit.
- Click Apply and restart Qt Creator if you choose to create kits automatically.
Note: The Automatically create kits for all available targets on start option is available from Qt Creator v4.14 onwards. On older versions of Qt Creator, you have to explictly create or remove kits using Create kit or Remove kit.
You could also set up the development environment from the command prompt. See Commmand-line Setup for STM Boards for more information.
Open the CMake project file for the example you want to build and configure it with the kit you created earlier. Once the project is configured, select Run or press Ctrl+r on your keyboard to build and flash the binary to the target.
- Open terminal window and run the following command:
ST-LINK_gdbserver -cp "<STM32_CUBE_PROG_INSTALL_PATH>/bin"
ST-LINK_gdbserver.exe -cp "<STM32_CUBE_PROG_INSTALL_PATH>\bin"
<STM32_CUBE_PROG_INSTALL_PATH>is the directory where you've installed the Cube Programmer tool.
GDB Server is now listening for TCP connections on the default port,
Note: Actual TCP port used by
ST-LINK_gdbserveris printed out on gdbserver's console.
arm-none-eabi-gdbin a separate console
- Connect to the target via the gdbserver in the
(gdb) target remote 127.0.0.1:61234
ST-LINK_gdbserver requires up-to-date ST-LINK firmware to be installed. If you see the following error:
Error in initializing ST-LINK device. Reason: ST-LINK firmware upgrade required.
you must upgrade the firmware to the latest version using the STM32CubeProgrammer tool.
If the problem persists after upgrade, retry with
ST-LINK Upgrade tool from the ST webpage ( Download ).
|Hardware board||MCU||Compiler||Operating system(s)|
|STM32F769I-DISCOVERY||STM32F769NI||GNU Arm 9, IAR Build Tools for Arm V8.50||Bare Metal, FreeRTOS (Tech preview)|
|STM32F7508-DISCOVERY||STM32F750N8H6||GNU Arm 9, IAR Build Tools for Arm V8.50||Bare Metal, FreeRTOS (Tech preview)|
|STM32H750B-DISCOVERY||STM32H750XB||GNU Arm 9, IAR Build Tools for Arm V8.50||Bare Metal|
|STM32L4R9I-DISCOVERY||STM32L4R9AII6||GNU Arm 9, IAR Build Tools for Arm V8.50||Bare Metal|
|STM32L4R9I-EVAL||STM32L4R9AII6||GNU Arm 9, IAR Build Tools for Arm V8.50||Bare Metal|
|STM32F469I-DISCOVERY||STM32F469NI||GNU Arm 9, IAR Build Tools for Arm V8.50||Bare Metal|
Available under certain Qt licenses.
Find out more.