2025-05-07 5:05 AM - last edited on 2025-05-07 5:33 AM by Andrew Neil
Hello everyone,
I'm currently working on a project with a custom electronic board (still in development). This project includes a 1280x400 display, driven via MIPI DSI by a processor (likely an STM32F429ZG or STM32F479ZG depending on the required pin count). Additionally, I prefer not to use an OS (so no FreeRTOS).
To test the display part, I have an STM32F769I-EVAL evaluation board. Initially, I would like to generate a project, display some content using TouchGFX, and interact with it via embedded software (e.g., updating circle progress). Once this is set up, I plan to connect my custom display to the board (we have an adapter board for this).
I have tried creating projects via TouchGFX and then importing them into STM32CubeIDE (as indicated on the TouchGFX site on the "Running without an RTOS on a TouchGFX Board Setup" page and in other tutorials) but without success. I also tried creating the project via STM32CubeIDE, enabling TouchGFX in the "Software Packs," and then opening it in TouchGFX, but this also didn't work.
I'm running out of ideas. I attempted to generate a project and configure external memories with FMC and QuadSPI, but I have never worked with external memories before, so I'm not sure if I did it correctly (especially the part about configuring sections in the linker script).
If anyone has a tutorial or can help me set this up, I would greatly appreciate it.
EDIT: I saw that external memories need to be added, so I'm looking into adding 8MB of SDRAM via FMC (which should be sufficient if the FrameBuffer is equal to 1280 * 400 * 24 / 8 bytes), and a few megabytes of Flash via Quad-SPI (I've only looked at how external memories are configured in projects generated by TouchGFX).
Thank you!
2025-05-07 7:35 AM
Hello @Miickey ,
You could create a TouchGFX project for the STM32F769 and then remove the OS.
Otherwise, if you want to create a TouchGFX project from scratch through STM32CubeMX, you can look at this video .
Regards,
2025-05-14 2:48 AM
Hello @Miickey ,
Have you bene able to move forward with your project?
Regards,
2025-05-15 10:31 AM
Hello @GaetanGodart
Thanks for your reply!
I had already come across that tutorial, but I didn’t go through it entirely — I was hoping to find a simpler method, at least for the evaluation board I currently have.
I tried following the tutorial, adapting the pins and configuration (I used the ones generated by TouchGFX for FMC and QuadSPI). The project compiles fine, but during debugging, I hit a MemManage_Handler() error, which occurs when calling the FMC_SDRAM_Init(...) function, inside HAL_SDRAM_Init(...), which is itself called in MX_FMC_Init(). I don’t understand the cause — I double-checked the FMC pins and SDRAM configuration, and they match what TouchGFX generates.
I had also previously tried creating a project via TouchGFX and then removing FreeRTOS in CubeMX, but that didn’t work either.
Following your message, I gave it another try. The project compiles, but during debugging, the screen displays random content: I tried to show a white background, two orange circles, and black text — the three colors are there, but the result doesn’t look like what I expected.
I’ll be back in the office early next week. I hope someone might have an idea by then so I can test it out :(
Thanks again for your help!
2025-05-15 11:05 AM
@Miickey wrote:I had also previously tried creating a project via TouchGFX and then removing FreeRTOS in CubeMX, but that didn’t work either.
Have you working project for Eval board ? Why you remove RTOS? Why over MX? Simply edit main files and run only without RTOS. For display test is irelevant... Is your target board hw ready for your app.?
Primary you require knowledge.
2025-05-16 1:27 AM
Hello @Miickey ,
There is 3 guides that you would need to remove the OS:
Please find attached a project from the STM32F769-DK board TBS where I remove the OS.
Here are the steps I followed:
Regards,
2025-05-20 6:46 AM
Hello,
Thank you @GaetanGodart for your help. Unfortunately, I still haven’t managed to create my project despite your assistance, nor to migrate the project you shared (which works well on a DISCOVERY board I have).
So, we’ve decided to dedicate more time to using TouchGFX with FreeRTOS in our software rather than spending more time trying to resolve our issues with bare-metal TouchGFX.
I was able to create a project with TouchGFX, import it into the IDE, and launch debugging on the board.
A small issue (I’m not sure if it’s a bug or if it’s still something I did wrong): when I tried to create a project via TouchGFX by selecting “Blank UI” (so an empty project), I encountered an error during emulation related to a call to setLanguage or something similar.
So I had to create a project starting from a demo, then delete all the elements, and finally add what I needed.
Thanks again for your help. I’ll now focus more on learning how to use FreeRTOS and developing with it for our next project.
Have a great day.
2025-05-21 12:50 AM
Hello @Miickey ,
It is always good to learn RTOS so this is not a bad decision you made.
when I tried to create a project via TouchGFX by selecting “Blank UI” (so an empty project), I encountered an error during emulation related to a call to setLanguage or something similar.
Did you open the .touchgfx file or the .touchgfx.part file?
Regards,