Discuss STM32 and TouchGFX implementations, including configuration, debugging, and optimization.
Most recent activity
i am using keil5 . please help me
I am trying to implement dark mode in my application. For this, when user selects dark mode, images for all the image widgets need to be changed to dark mode images. I understand this can be done using setBitmap in run time. However, images need to be changed to all the image widgets in current screen as well as other screens. How can I achieve this?Is it a good idea to check dark mode setting in setupScreen() and then use setBitmap to attach appropriate image to all image widgets in that particular screen? Any other ways to achieve this?
I am having a problem with on-screen fonts. The dither/font-smoothing applied to the fonts eats into thin segments of the characters too much. This causes them to be too dim on screen for my application.I've managed to show that the problem clears up if I use the BOLD version of the same font when defining my typographies, so it seems related to how the dither algorithm behaves around thin sections of characters. When BOLD, the dither doesn't touch the core of the character at all, its a bright, solid colour. When not bolded, there are lots of little tracks of dim pixels winding through the main body of the character.I would prefer not to resort to using the BOLD typeface everywhere if possible. Are there any settings I can adjust to "sharpen" the text or limit how much dither bleeds into the body of the character? I'm running 4.15.0.
Hello,I am using 4 bit Red, 4bit Green, and 4Bit Blue panel displays in my project. I want to design a colorful GUI for my application and I want to do it using TouchGFX. Since TouchGFX uses Grey4 format for 4bit displays, it only produces Greyscale images while running the simulator in TouchGFX. So I am confused about how to take this development ahead.How do you recommend taking this project ahead with TouchGFX? Can someone please guide me on the following:1) Can my concept of using TouchGFX for this scenario to create colorful GUI application work?
I set the FMC Base Address as 0x6c00007ebut this value is changed to 0x7800007Eand lcd doesn't show anything. I changed this value to this.It works properly.and I changed the value as 0x60000000,CubeMX is automatically generated correctly.
I would like to create android look alike GUI, wherein the top shutter to create menu items. currently the only implementation in the TouchGFX is to use Slide Menu from top screen and click makes it visible and another click hides the same. But I want to make it draggable from top to middle and backwards. How to modify slide menu to make it draggable or is there any other method. I already have the swipe container for LEFT and RIGHT navigation. Only for top shutter need implementation in conjunction with Swipe container.
I had to reinstall Windows on my PC. I made a backup of my projects and after everything was running I've downloaded and installed the latest STM32CubeIDE version. I'm trying to import my TouchGFX project back to the new workspace but it isn't compiling anymore. The reported error is: cannot find -l:libtouchgfx-float-abi-hard.ac:\st\stm32cubeide_1.5.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.5.0.202011040924\tools\arm-none-eabi\bin\ld.exe: cannot find -l:libtouchgfx-float-abi-hard.aAny thoughts?
Hello,In the STM32CubeF4 project (https://github.com/STMicroelectronics/STM32CubeF4), the comment on line 42 of /Drivers/BSP/STM32412G-Discovery/stm32412g_discovery_lcd.c says that "This driver supports the LS016B8UY LCD". Then, on lines 153 to 192, the program checks for ST7789H2 and for LS016B8UY, but there is no comment concerning the ST7789H2.Then the User Manual of the Discovery kit with STM32F412ZG MCU says (page 26) that "The display is a 1.54-inch, 240x240 pixels TFT color LCD" but the LS016B8UY seems to be a 180x180 display. So as the ST7789H2 seems to be a 240x240 display, I would rather think that the ST32412G-DISCOVERY uses the ST7789H2... but this does not match the comment.Can you please shed some light on this?Thank you very much in advance.Best regards,-- Jacques
I would like to know if touchgfx is portable in other microcontrollers or is it strongly related to ST products? Thanks a lot
Hi,I want to use Handle Gothic Font in my project. I am seeing strange thing happening while displaying text area with this font. In this font family, All font types are displaying text exactly as similar to the font family alphabets. But only Regular type is not displaying exact Font. To test, use DEPTH as text to display. In this font, E is curved.In the attached file i have added 2 font types . One is Regular(In which i am getting issue) and other is Medium(No issue).I have checked this issue in both 4.16 and 4.17 versions.Please help me to solve the issue.Thanks and Regards,Bala
Hello,We have successfully been using this LCD module with TouchGfX.On a unit we have left running for endurance testing we have noticed two dark horizontal bands on the top half of the display.Is this likely to be caused from the backlight as the bands remain in place regardless of the display contents ?We run our unit with the backlight always on. Is this a good idea or should we have a time out delay and reactivate from a touch event?Thanks
specifically, when/how to send DSI configuration commands at startup.
Hi, I want to set a float value for my x axis but there are no functions that works. something like this , ex: setGraphRangeX(0,18.5);Is it possible to do that or maybe implement a new function.Thanks for help in advance,
Hi,I want to check if there is a message sent from the backend task in every tick event. I am using a freertos queue to send/receive messages. I am wondering whether the handle tick event function is called in an interrupt callback. I need to use the proper queue API.Thanks in advance.
Hello,I am trying to change the button labels dynamically through wildcard buffers, but the labels are not updated at all, Unicode::UnicodeChar txtBufferButton1[3];Unicode::UnicodeChar txtBufferButton2[3]; char* data = "abc";//trying text label update (not working)button1.setWildcardTextBuffer(txtBufferButton1);Unicode::strncpy(txtBufferButton1, data , 3);button1.invalidate();//trying int value update (not working)button2.setWildcardTextBuffer(txtBufferButton2);Unicode::snprintf(txtBufferButton2, 3, "%d", 123);button2.invalidate();These buttons are defined as shown here:button1.setBitmaps(Bitmap(BITMAP_BTN_BG_DEFAULT_ID), Bitmap(BITMAP_BTN_BG_SECONDARY_ID));button1.setBitmapXY(0, 0);button1.setWildcardText(TypedText(T_CPSELECTBUTTON1));button1.setWildcardTextPosition(0, 25, 68, 68);button1.setWildcardTextColors(touchgfx::Color::getColorFrom24BitRGB(255, 255, 255), touchgfx::Color::getColorFrom24BitRGB(255, 255, 255));button1.setIconBitmaps(Bitmap(BITMAP_NO_ICON_ID), Bitmap(BITMAP_
Hi,I have a problem with Dynamic graph on the LCD that when I upload the code, the graph on the screen start to flicker but it's not the in the simulation. I shared the video below.I want to Update 680 data points on the Graph every tick in "handleTickEvents". (The data comes from the SPI. The SPI and TouchGFX are in different tasks.)I used TouchGFX 4.15 and I am using STM32H743 with external RAM and FreeRTOS.Thanks in advance
We have a pretty big project and we want 2 people to develop screens for one project. we are using bitbucket as a repo and the idea is person 1 can make there screens on a branch and person 2 can make theirs on a separate branch. The merge them at the end. We tried this and we get conflicts. The attached image is just one of them. when touchGFX generates images it gives it an name and ID number, but as you can see the ID numbers are different. How can 2 or more people develop for the same touchGFX project? Is it even possible?
After connecting STM32 to LCD, there is no response when I tap on the screen; after connecting Arduino UNO to LCD, there is the response when I tap on the screen. What is the reason for this?
I've read the Release Notes and they say nothing about any bugs that may have been fixed going from STemwin 5.40 to 5.44 (for example the memory leak in GUI_GIF_DrawEx).Does such a document exist, if so can someone post a link to it please?Cheers
I am following the documentation in application note AN4861 (LTDC) and the data sheet for the STM32L4R5ZI MCU (DS12023 Rev 5). According to AN4861I should be able to configure the LTDC with STM32CubeMX but I am not seeing the LTDC peripheral on the list. According to the MCU data sheet there is an LCD TFT Controller built into this MCU. Anything I am missing?
Hello, I'm using TouchGFX with STM32F746NG Discovery Kit.Now I want to create an widget (or something like that) in TouchGFX where I can stream data from Camera which connected with STM32F7 kit. I have read TouchGFX documents but it's seem no object as I want available. So can I have any solution for my doubt? Many thanks,Hieu
Is caching using DMA while the bitmap is caching in Touchgfx?
Hi,I created a touch screen initialization function. The touch screen works just fine if a I poll the TS_State.TouchDetected flag. If I enable the touch interrupt from the initialization function I get a compiler error message:uint32_t InitializeTouchScreen(void) { TS_Init_t hTS; uint32_t ts_status; hTS.Width = LCD_GetXSize(); //800; hTS.Height = LCD_GetYSize(); //480; hTS.Orientation = TS_SWAP_XY | TS_SWAP_Y; hTS.Accuracy = 0; ts_status = BSP_TS_Init(0, &hTS); // Enable touch IT BSP_TS_EnableIT(0); return ts_status; }The error message:... stm32h747i_discovery_ts.c:252: undefined reference to `HAL_EXTI_GetHandle'...The "stm32Cube-bsp-drivers.pdf" manual does not help. It just lists the interrupt enable function but there is no explanation how to use it.I also wonder how I can detect the touch interrupt (once it compiles). It is a GPIO pin in the HAL_GPIO_EXTI_Callback() callback function, GPIO PK.7, I guess:// stm32h747I_discovery_ts.h line 88 #define TS_INT_PIN ((
Hi ,I have problem with the Heap issue (for many views I think)I try to comment some view in FrontendHeapBase and it can flash into kit, but I found out in some view using more heap than declare --> it errors.Can you help me fix this problem??Thank alot.
../TouchGFX/target/generated/TouchGFXConfiguration.cpp:17:10: fatal error: texts/TypedTextDatabase.hpp: No such file or directory fatal error: touchgfx/hal/GPIO.hpp: No such file or directory make: *** [TouchGFX/target/generated/subdir.mk:28: TouchGFX/target/generated/TouchGFXConfiguration.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [TouchGFX/target/subdir.mk:28: TouchGFX/target/TouchGFXGPIO.o] Error 1 ../TouchGFX/target/STM32TouchController.hpp:23:10: fatal error: platform/driver/touch/TouchController.hpp: No such file or directory ../TouchGFX/target/generated/TouchGFXGeneratedDataReader.hpp:20:10: fatal error: touchgfx/hal/FlashDataReader.hpp: No such file or directorythe adc code: #include "main.h" #include "adc.h" #include "crc.h" #include "usart.h" #include "gpio.h" #include "app_touchgfx.h" /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ /* USER CODE END Includes */ /* Private
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.