mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-09 22:25:25 +00:00
2.6 KiB
2.6 KiB
STMicroelectronics' STM32Cube Ecosystem
Slint provides a platform integration with into STMicroelectronics' (STM) STM32Cube software platform.
It uses the BSP_TS
APIs to retrieve touch input and uses the BSP_LCD
and HAL_LTDC
APIs to render
to the screen with double-buffering.
Prerequisites
To build a C++ application with Slint for STM32 MCUs, install the following tools:
- cmake (3.21 or newer)
- STM32CubeCLT
- Visual Studio Code
- Slint extension
- STM32 VS Code Extension
- CMake Tools
First Steps
We provide templates for different STM32 Discovery Kits that provide:
- A pre-configured build system.
- Application skeleton source code with sample Slint UI.
- Example usage of callbacks, properties, and basic widgets.
To get started, select a download from the following table. If your board is not included in the table below, see our instructions.
STM32 Board | Download |
---|---|
STM32H747I-DISCO: Dual-core Arm M7/M4 MCU with 4” touch LCD display module | slint-cpp-template-stm32h747i-disco.zip |
STM32H735G-DK: Arm M7 MCU with 4” touch LCD display module | slint-cpp-template-stm32h735g-dk.zip |
- Download and extract the archive that matches our STM32 Discovery Kit.
- Open the extracted folder with VS Code.
- Configure the project either via "CMake: Select Configure Preset" from the command palette or the CMake extension panel.
- Build, Flash to Device, and debug by hitting
F5
or running theCMake: Debug
command from the command palette.
Next Steps
- For more details about the Slint language, check out the Slint Language Documentation.
- Learn about the between Slint and C++.
- Study the .
:maxdepth: 2
:hidden:
:caption: STMicroelectronics' STM32Cube Ecosystem
stm32/generic.md