- STMicroelectronics STM32 Processor Based Boards: https://www.mathworks.com/help/ecoder/stmicroelectronicsstm32f4discovery/ug/Getting-started-stm32cubemx.html
- Algorithm Export Demonstration: https://www.mathworks.com/videos/deploy-c-code-to-stm32-nucleo-using-embedded-coder-algorithm-export-demonstration-1631529772737.html
SIMULINK with STM32
23 views (last 30 days)
Show older comments
Hello everyone,
I am working with the STM32H735G-DK Discovery Kit (which has a 480x272 TFT LCD with capacitive touch). I would like to know how to interface the display using Simulink.
- I have already installed MATLAB, Simulink, Embedded Coder, and the Embedded Coder Support Package for STM32.
- My next goal is to show data (for example, a counter or sensor value) on the display.
Questions:
- Does Simulink directly support the LTDC/TFT LCD on STM32H735G-DK?
- If not, what is the recommended workflow? Should I combine Simulink-generated code with a TouchGFX project in STM32CubeIDE?
- Are there any example projects or documentation on integrating Simulink with TouchGFX for display applications?
Any guidance, references, or example workflows would be very helpful.
Thank you!
0 Comments
Answers (1)
Nidhi
on 16 Oct 2025 at 6:03
Hi Jerry,
I understand you’re looking to display real-time data (such as a counter or sensor value) on the TFT LCD of the STM32H735G-DK Discovery Kit using Simulink. Currently, Simulink and the Embedded Coder Support Package for STM32 do not provide direct blocks or built-in support for the LTDC/TFT LCD controller or display peripherals on the STM32H735G-DK. The support package mainly covers basic peripherals like GPIO, ADC, PWM, UART, etc.
A common approach is to use Simulink and Embedded Coder to generate your application logic as C code, then integrate this code into a TouchGFX project within STM32CubeIDE for handling the display and touch interface. While there isn’t a ready-to-use example for this exact integration, you may find the following resources helpful:
This workflow allows you to leverage Simulink for algorithm development and TouchGFX for advanced display features. Hope this helps clarify your next steps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!