stm32f411RE and TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-16 2:04 AM
Hi, I've been trying a project focusing on GUI display on TouchGFX GFX01M1 with STM32f411RET6 NUCLEO board. I have seen videos in youtube related to TouchGFX and they say that there is a need for FMC interface and LTDC in STM32CubeIDE. But for STM32f411RET6 board there is no FMC and LTDC in STM32CubeIDE, which is essential for interfacing TouchGFX with STM32f411RET6 board. I have thought of using SPI pins but for that I'm needing TFT ili9341 display. I want to implement my project with TouchGFX GFX01M1 only. Kindly suggest me a correct way to do this.
Thank you,
K.M.Vihasitha
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 5:54 AM
Hello @Mohammad MORADI ESFAHANIASL ,
Thanks for your concern and getting back! I have tried a completely different approach than the one you have mentioned above. I have taken the code of ili9341 display and integrated that with X-NUCLEO-GFX01M1 display. This worked for me and I have got the output on X-NUCLEO-GFX01M1 display.
Thank you,
K.M.Vihasitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-16 3:18 AM - edited ‎2024-04-16 3:25 AM
Hello @viha_123 ,
First of all, I should mention that the display module you are considering using is called X-NUCLEO-GFX01M1 , and it is not related to TouchGFX.
As you mentioned, you need to use SPI to communicate with your display module, and the process for doing that differs from using LTDC. There is a documentation available here to show you the process required for dealing with SPI or FMC displays.
Unfortunately, there is no TouchGFX Board Setup available for the STM32F411, hence you need to start a new project from STM32CubeMX and proceed from there. There is a comprehensive tutorial in the TouchGFX Board bring up documentation that can assist you throughout this journey.
It is also worth mentioning that there are a few TouchGFX Board Setups that use SPI displays, which you can use as inspiration for your custom project. For instance, you can take a look at STM32 NUCLEO-G071RB or STM32 NUCLEO-WB55RG
STM32 NUCLEO-G071RB TouchGFX Board Setup
I hope this helps you. Don't hesitate to ask more questions
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-21 6:41 AM
Hi! Thanks for the reply! Really appreciate it! Sorry for the late reply, but can you please tell what are the correct pins for using SPI with the X-NUCLEO-GFX01M1 and NUCLEO-F411RE board? As I find it in the SPI display expansion boards for STM32 Nucleo-64 - User manual the pins are not matching, as SPI1 is disabled in the board, I'm finding that the hardware is not matching. Kindly give me a suggestion.
Thank you,
K.M.Vihasitha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-21 7:35 AM
Why ? On page is marked as compatible X-NUCLEO-GFX01M1 - Display expansion board for STM32 NUCLEO - STMicroelectronics
And SPI displays minimum conect is GND MOSI CLK for touch and bidireect next pins...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-21 8:57 AM
But if I try to do that in STM32CubeIDE I'm not able to get anything on the display, the display is just white as a screen. I'm attaching the code of main.c implemented in STM32CubeIDE :
Please go through it.
I'm also attaching the .ioc screenshot. Kindly give me a solution regarding this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-21 9:47 AM
Place code into
hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_2;
and start diag with this line. Display dont work with any clock set, read pdf for max.
Second issue maybe lcd init isnt ok only one cmd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-30 2:59 AM
For sending data using SPI, you don't need to use TFT_LCD function. STM32CubeMX does contain some helper functions to send data easily.
Again, I suggest you to continue your process based on the available documentations, especially using this documentation .
There are also other examples in STM32CubeMX to demonstrate how to set up SPI communications. When you open STM32CubeMX, select File -> New Project. Then, in the opened window, select Example Selector tab, under the MCU/MPU section enter the name of the MCU (STM32F411RET6) and the select a relevant example, for instance, SPI_FullDuplex_ComPolling. Then you will get the source code for how to set up the SPI configuration.
Example Selector
Good luck
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-05-02 11:02 AM
Sorry for the late reply!
Thanks for the reply, I have gained a new insight on the project by this solution. I will try this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 2:26 AM
Hello @viha_123 ,
Did you manage to progress with your project?
ST Software Developer | TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-06-26 5:54 AM
Hello @Mohammad MORADI ESFAHANIASL ,
Thanks for your concern and getting back! I have tried a completely different approach than the one you have mentioned above. I have taken the code of ili9341 display and integrated that with X-NUCLEO-GFX01M1 display. This worked for me and I have got the output on X-NUCLEO-GFX01M1 display.
Thank you,
K.M.Vihasitha
