Discuss STM32 and TouchGFX implementations, including configuration, debugging, and optimization.
Most recent activity
Hello,I want to use my project under git version control,so, my question is what should I control from TouchGFX folder of my project, and what should I add to .gitignore file?Thank you,Anton
If you guys are working on a new version update anytime soon, here are some things I'd like to see.Add standard shortcut keys to the top menu (Alf-F, Alt-E, Alt-H)When creating a new application, use a standard File dialog for the Application Directory so you can paste/edit a path. And it should remember the last path!Shortcut keys for Run Simulator, Run Target, Generate code (F5, F6, F8)?Add an orientation setting at the application node (and most of the json project settings)Move the build output window into a docked view, instead of a popup.When opening a project from the recent list, use a loading progress rather than hardlocking the UI on the main thread for 30 seconds.Help => Link to help documents / knowledge base for DesignerHelp => Check for Updates-or-Open source the Designer to Github and let the community work on it.
I have declared a typedef struct data_t on my jsmn.h after that I declared a variable DATA of type data_t on jsmn.c and i defined N,T,C and Hthen i declared DATA of type Data_t as extern on ScreenViewBase.cppand i try to display DATA.N on the screenbut a linker error appear : no definition for DATA referenced from ScreenViewBase.oPS1: I do the same with time : in ScreenViewBase.cpp I declared extern RTC_TimeTypeDef sTime then I write Unicode::snprintf(Ndata, 6, "%02d",sTime.Hours ); and it work perfectly.PS2: I work with stm32f769 and with IAR 8.32.3
..
We are using STM32F429I eval board and developing GUI based application using TouchGFX(Ver.4.9.3) and IAR(Ver.7.4).We are facing linking error in IAR mentioned below,Problem: Error[Lp011]: section placement failed unable to allocate space for sections/blocks with a total estimated minimum size of 0x2f6bfd bytes (max align 0x4) in <[0x08000000-0x081fffff]> (total uncommitted space 0x1ffe54). Error while running Linker
Hi,I have my ownPCB with the STM32F429, SDRAM, TFT and others. To avoid screen flickering, I amdisabling the clock for LTDC for a time when content is changing. If I do it very often (10 times per second) itcould happen that the MCU crash. It doesn’t matter if I use critical section(disable isr), modify register or use bit banging, always the same, crash aftera few seconds (time is not constant). I use this instruction:RCC->APB2ENR &= ~RCC_APB2ENR_LTDCEN;I also try to use bit banging, but the effect is the same.Does one have any idea why? What is the most elegant way to avoid flickering?BRKWT
I have this problem just today, my application works as intended if i start it vua TouchGFX designer, but if i start simulator from visual studio, it acts weird, like showing wrong images, and some buttons instead of changing screens leads to this error:
I would like to use TouchGFX in a project and need to show some (animated) videos with sound from the SD card.
Hi.I make TouchGFX project for STM32F7508-DK.I want to compile with TrueSTUDIO.I found LinkerScript file in project/gcc folder.This file name is STM32F7508x_FLASH.ld. but this file is STM32F746NGHx.Refer to the attached file.Please, tell me real STM32F7508x_FLASH.ld.Thank you.
Hello,We want to use 32F723EDISCOVERY having Frida FRD154BP2902-CTP LCD display.On the TouchGFX designer it's application template is not available and also it's not listed in supported ST kits on the website. https://www.touchgfx.com/product/supported-stm32-kits/Can we create custom template for 32F723EDISCOVERY in TouchGFX for GUI development and how easy would it be? Also what kind of support is available if custom template can be created.If not, are there any other IDEs/Development tools for 32F723EDISCOVERY GUI Development from ST/elsewhere.Thanks,Ameya
I have an application where I will need to rotate multiple images at the same time and am seeing performance issues. I have tried it on the STM32F746G-Discovery as well as the newer STM32F750-Discovery and am seeing the RENDER_TIME run out and of course this causes frame skipping and then slight jerks in the rotation of the images.I see similar issues when rotating shapes instead of images (although it is much better).What things can I do to improve performance?
i have this problem, in my app i have a text area which say: current option:Option Ausing touchGFX i set an interaction when a button is pressed to chage that text area, and i need it to become:current option:Option Bwhen i put those tho line in the text field in the Interaction options on touchGFX like showedwhat TouchGFX generates on ScreenViewBase.cpp is this:and OFC won't compile.i tryed some escape sequence, but no luck so far...can someone enlight me.Thanks in advanceStefano
When i try to load an application to that disco board i keep having: An error occured during flash. Please make sure you have the right target connected.STM32CubeProgrammer is placed in Program FilesSTM32CubeProgrammer is placed in Program FilesConverting imagesSTM32CubeProgrammer is placed in Program FilesSTM32CubeProgrammer is placed in Program FilesFlashing bootloader/usr/bin/sh: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe: No such file or directorygcc/Makefile:463: recipe for target 'flash_bootloader' failedmake[1]: *** [flash_bootloader] Error 127../gcc/Makefile:53: recipe for target 'flash' failedmake: *** [flash] Error 2this happen both with my application and the online application downloaded for H750 via touchGfx, but if i make a new project with just a button, it works fine...should i reinstall stm32CubeMx? (due that error...)
Hi everyone,I'll be out for three weeks for summer vacation here in Europe. In the meantime, my colleague @Anders Nedergaard PETERSEN will be helping you with any issues you're having.Edit: See you soon! (Thanks to @hansd56 for pointing out that it's not summer everywhere in the world).Best regards,/Martin
Hello,I'm having difficulties setting up the LTDC properties in the HW_Init.cpp file for my specific LCD screen and thought that someone here could potentially help me. The lines I have to configure are the followings:hltdc.Init.HorizontalSync = 20; hltdc.Init.VerticalSync = 10; hltdc.Init.AccumulatedHBP = 210; //Acculumutaled Horizontal Back Porsh hltdc.Init.AccumulatedVBP = 20; //Accumulated Vertical Back Porsh hltdc.Init.AccumulatedActiveW = 1010; hltdc.Init.AccumulatedActiveH = 502; hltdc.Init.TotalWidth = 1056; hltdc.Init.TotalHeigh = 525 ;And here are the characteristics of my LCD screen:I struggle 'making the conversion' between the code and the table in the datasheet, considering the naming is different and that a range of values may be used for any given parameter (which one to choose then?). I know I've to modify this line too:HAL_LTDC_SetPitch(&hltdc, 800, 0);(the 800 value is not correct) but have no idea of what it corresponds to and haven't found a lot of resso
Hi, I found that Dma2d supports L8 format ,and if i use L8 format,Whether the color of the image is inferior to rgb565.Best regards
Hola,I need your help in order to configure the LTDC controller of my project because I've a very limited knowledge of LCD screens. After having read this tutorial, everything appeared clear and I thought it would be straightforward to configure my file. Little did I know that the documentation of my screen would use a rather different terminology and that I can't translate between the twos. Plus, it seems that some parameters are missing from the doc… The datasheet of the screen is attached to this message. All I need to configure to get it working are these few lines I think :hltdc.Init.HorizontalSync = 40; hltdc.Init.VerticalSync = 20; hltdc.Init.AccumulatedHBP = 46; //Acculumutaled Horizontal Back Porsh hltdc.Init.AccumulatedVBP = 23; //Accumulated Vertical Back Porsh hltdc.Init.AccumulatedActiveW = 846; hltdc.Init.AccumulatedActiveH = 503; hltdc.Init.TotalWidth = 886; hltdc.Init.TotalHeigh = 523 ;(located in HW_Init.cpp)A huge thanks in advance.
I try to add a very simple screen to my project. It always crashed when I try to add a box as background. It ends up with the infinite loop in startup assembly file. Here is what I found so far:I can draw a smaller box(50x50). if I decrease speed of LTDC clock to a certain value, I can draw any size of box I want. But the screen gets flickering for the lower refresh rate.I am using f7 and has set clock and SDRAM to maximum speed. Does anyone has similar issue? Is there any settings to improve this issue? Thanks in advance.
Hi everyone,I am using a STM32L073RZ with its LCD driver feature.I would like to drive a LCD panel with "1/4 duty, 1/3 bias" driving method (reference of the LCD panel : LCD-S401M16KR). I am not familiar with this driving method if it is handled in a microcontroleur. I need 4 LCD_COM lines and 8 LCD_SEGMENT lines. From Cube MX, i chose COM0 to COM3 in the STM32L073RZ.My question is : do i have to use LCD_SEG0 to LCD_SEG7 in the STM32 peripheral or do i just need to choose 8 LCD_SEGx among the LCD_SEGx from the STM32 (for exemple : SEG0 to SEG2, SEG5, SEG6, SEG8, SEG9, SEG11) ?Thanks in advance
I am working on an application that will need to be able to allow the user configure the color scheme of the screen. That is, the color of various images will need to be changeable. Is there a way do this with the TouchGFX libraries? What I would like is to have a basic image and be able to paint it using the libraries. I did not see any examples of this provided.I would prefer to not have multiple images in the assets, each of a different color because the number of different colors this application will require.Or would this require drawing the image in code with the abstract shape class and then paint it?
Hello,I created an gui with designer and now want to add my UART implementation (C) that uses LL drivers. Bunch of compilation errors are displayed when trying to compile it.I added the .h/.c files and the used ll .c/.h files to minUnit folder under target/minUnit (refer to image below)I editted the gcc/Makefile include paths:#keep framework include and source out of this mess! :) include_paths := $(library_includes) $(foreach comp, $(all_components), $(comp)/include) $(framework_includes) $(source_bsp_paths) target/minUnit source_paths = $(foreach comp, $(all_components), $(comp)/src) target/minUnitminUnitSerial.h includes the ll_drivers:#ifndef __MINUNITSERIAL_H #define __MINUNITSERIAL_H #ifdef __cplusplus extern "C" { #endif /* Includes */ #include "FreeRTOS.h" #include "task.h" #include "queue.h" #include "semphr.h" #include "stm32f4xx.h" #include "stm32f4xx_ll_rcc.h" #include "stm32f4xx_ll_bus.h" #include "stm32f4xx_ll_cortex.h" #include "stm32f4xx_ll_dma.h" #
Hello,I am trying to configure the f469i-disco kit for TouchGFX. I only get left half of the gui with a background of random RBG pixels.CubeMX configuration:Default periph configurationChanged LCD-tft clock to 25MHZ(from 36)All modes in ltcd, dma2 and touchgfx changed to RGB888 (from 565)Changed horizontail active, layer width and horizontal stop to 400 (as mentioned in MOOC graphics, because screen is split in 2parts)TouchGFX set PhysicalX to 800, Y to 480Can someone help me a bit? I tried changing settings with no success, I guess that the problem is in LTDC settings.In debug mode:after the DSI_init background gets pixelated by random rgb pixels. When Scheduler starts, only half of actual screen from TouchGFX is drawn. I can change orientation in DSI_init to landscape, but still get only half of screen correct.Any help is appreciated.
I have had problems to integrate TouchGfx (4.10.0) in CubeMX (5.2.1) & Keil (5.25.2), I have followed all the steps in detail that are on your page, following the steps for this purpose and the button EXE is not enabled. What should I do? Is there another way to integrate the 3 tools?
Hi,I tried to install TocuhGFX 4.10.0 but there is "Out of Disk Space" issue. I am sure C: drive has 181GB but the error message box lists up all the disk drives including network drives on the list. The error message box says "The highlighted volumes do not have enough disk.." but there is no highlighted dirves and some definately have enough space.Could someone help me to resolve this problem? I tried to reset my computer and to use command line window to install it by command type but failed.Thanks in advance.Chris
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.