SIMULINK with STM32

19 visualizaciones (últimos 30 días)
Jerry
Jerry el 30 de Sept. de 2025
Respondida: Madhu Varshini hace alrededor de 8 horas
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!

Respuestas (2)

Nidhi
Nidhi el 16 de Oct. de 2025 a las 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!

Madhu Varshini
Madhu Varshini hace alrededor de 8 horas
Hi Jerry,
As Nidhi mentioned, display peripherals are currently not supported at present. However you can use custom code block to reproduce the required functionality.
Refer to the following link which has an example on how to use custom code functionality used for similar purpose:
Thanks

Community Treasure Hunt

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

Start Hunting!

Translated by