SIMULINK with STM32

23 views (last 30 days)
Jerry
Jerry on 30 Sep 2025 at 11:19
Answered: Nidhi on 16 Oct 2025 at 6:03
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:
  1. Does Simulink directly support the LTDC/TFT LCD on STM32H735G-DK?
  2. If not, what is the recommended workflow? Should I combine Simulink-generated code with a TouchGFX project in STM32CubeIDE?
  3. 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!

Answers (1)

Nidhi
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!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!