Discuss STM32 and TouchGFX implementations, including configuration, debugging, and optimization.
Most recent activity
Hello,I'm using the board NUCLEO-H563ZI paired with RVA35HI screen.When I just created the project and generated the code i could download the touchgfx project with the touchgfx application ("program and run target" option), but after trying to download it with IAR IDE (and having problems with it) the system is not working anymore; the screen stays white and when i try to generate with cubemx, the popup message on touchgfx asking if i want to reload after the changes is not showing up anymore.It seems that touchgx and cubemx aren't synchronized anymore.When i said i have problems with IAR i mean these messages when i try to debug:1- "There were warnings while generating flash loader input. See the Debug Log window for details"2- "There were 2 errors and 1 warning during the initialization of the debugging session. There is more infrmation in the Debug Log window. Do you want to continue the "Run to" command?"The dubugger stops in the HardFault_Handler. Do you have any experi
Hi all I have STM32 IDE installed in "C:\STM\STM32CubeIDE_1.19.0\STM32CubeIDE" and seem to work properly so far as I am on installing the 2 programs. I try to install TouchGFX 4.26.0 in "C:\STM\ to have those two in the same area., but I received an errorlike this one: Could not set file security for file "C:\STM". ERROR 5.........So anyone have an idea ?Thanks all.
Hello,I am trying to run a touchscreen with STM32H7R7L8Hx and I am having multiple issues.This is the structure I used, I am using FreeRTOS and TouchGFX in the STM32CubeMX. Years ago I run a touchscreen with STM32H7A3RITx, it was easy because it was not asking project structure.When I add FreeRTOS it is adding both locations, I know I can simply exclude from build the top one but there are more issues. In the TouchGFX Designer it can't find the project file so it can't add include paths and source files correctly, so I have to make it manually. I think this is the most important problem, TouchGFX uses older version of FreeRTOS but STM32CubeMX adds newer version of FreeRTOS and I am not able to select FreeRTOS version.STM32CubeMX Version: 6.16.0TouchGFX Version: 4.26.0How can I solve these issues? Thank you.
Hey, our team is working with TouchGFX Designer (4.19.1) and IAR IDE.TouchGFX assets include 50 MB of images, videos, fonts and texts.We are trying to find a way to change the app without touching and flashing TouchGFX assets.The TouchGFX should stay constant while only the app code itself changes.Meaning compiling the code without compiling TouchGFX assets again to get a smaller hex file to flash/store, and current TouchGFX assets that are stored in the external memory will work, so basically we want to exclude all TextFlashSection, ExtFlashSection and FontFlashSection files from compilation.The main goal is to store a backup version of the code inside the internal flash for cases of software updates, so we want to compile only the app code.Is it related to the linker file or some other configuration file?
Dear ST Support Team,We are currently working with the STM32N657X0H3Q1 controller and configuring TouchGFX to use an external RAM device.The external memory used in our design is S80KS5123GABHB020 (512 MB Octal RAM) connected via XSPI. The external RAM is intended to be used for TouchGFX frame buffers and graphics-related data.While configuring TouchGFX with the external memory in STM32CubeMX / application code, we need to set the base address of the external RAM. However, we would like clarification on the following point:What is the correct memory-mapped base address that should be configured for the external RAM (S80KS5123GABHB020) when used with the STM32N657X0H3Q1 for TouchGFX ?Is this address fixed by the STM32N6 memory map, or does it depend on the XSPI instance and configuration (XSPI1 / XSPI2)?Are there any specific recommendations or constraints for using this external RAM as TouchGFX frame buffer memory?Your guidance on the correct address configuration and any best practice
Is there any example how to create any simple animation? I would like to get object in motion using static isometric view. Object based on the few outlines of rectangles outlines with painter or putting the texture on it. I need to rotate one pseudo 3D rectangle in reference to the other. It is not so hard for 500MHz CPU, the issue comes with additional effects like lighting but it is not so important.
STM32H747XIH6 touchGFX, project root directory, two seperated CM4 and CM7, touchGFX under CM7, when touchGFX designer create code, always to search .cproject under root directory, (.ioc is here, but no .cproject, only .project), under CM7 exist .cproject and .project! this cause touchGFX designer code generate fail!
Edited by a ST moderator: Please use English language in this community. Thank you ボードは、STM32F746G_DISCOを使用しています。タッチTouchGFXデザイナーにて、データ増減用のボタンを作成し、ボタンクリックでデータを増減する様なソフトウェアを構築しましたが、ボタンクリックに対して反応が遅い現象が出ています。ボタンのクリックに対して、GUI上のボタンは、反応していますが、ソフトウェア上の処理がなされない事が多い現象が出ています。どの様な原因が考えられるでしょうか?お教えください。よろしくお願いいたします。 Translation: I am using the STM32F746G_DISCO board. I created buttons for increasing and decreasing data using TouchGFX Designer, and built software that increases and decreases data with button clicks. However, I am experiencing a slow response to button clicks. The buttons on the GUI respond to button clicks, but the software often fails to process them. What could be the cause of this? Please let me know. Thank you in advance.
Hello everyone,I am currently trying to integrate TouchGFX into an existing STM32 project (an FDCAN master node application), and I am facing several issues.I enabled the TouchGFX generator in STM32CubeMX and configured all required peripherals (LTDC, FreeRTOS, DMA2D, OSPI/HyperRAM, clocks, etc.).I also adjusted the clock configuration to match the display timing.However, after flashing the application, the screen remains completely black.Nothing I have tried so far has made any difference.I have now discovered that the thread I created for the TouchGFX task is never executed, and I have not been able to find the root cause of this.Any hints or guidance would be greatly appreciated.int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration--------------------------------------------------------*/ /* Reset of all peripherals, Initializes the Flash interface and the Systick. */ HAL_Init(); /* USER CODE BEGIN Init */ /* USER CODE END Init */ /* Conf
I have studied using the STM32F429I-DISC1 board with TouchGFX and can already implement buttons, LEDs, and ADC. However, I have a project that requires using a different LCD that uses the SSD2119. Can I directly replace the LCD, or are there additional parts of the code that need to be modified? Please guide me.
I use the touchGFX to design a UI interface and have a serial issue for the distortion ,the format of picture is PNG with alpha ,color depth is 32 bit ; Even if i set the parameter on the touchGFX designer as RGB565,no either, alpha is true or ARGB888, no either, alpha is true , the real display effect with the 2.8 inch TFT LCD is not so good as following picture that i have no idea to improve this issue,by the way, the whole frame of LCD window is good to be displaied with R,G,B,white, black;
Hi ST teams,Currently we use the ScrollList widget to show up to 2000 items and list item is not same properties for all, I have create the custom container to support item can show one of two layout: date title and item info like image bellow: To able detect and show list item with correct layout I have save the item info to list item and detect scroll up/down behavior follow the itemIndex callback from void HistoryView::scrollListUpdateItem(HistoryItem& item, int16_t itemIndex) if itemIntex > oldItemIndex then scroll is down else is up. With detected behavior and item info from last updated list item I will know what is next info index need to get and add to list item. I can show correct the ItemInfo or DateTitle from list if do scroll to list with slow speed. There are problem when I scroll faster the itemIndex is intermittent change:You can see on the image, the next item afte
Hi,I've recently migrated to TouchGFX v4.25. The changelog seems to indicate that we can now store our texts in an unmapped external flash, for example an SPI flash. When going through the following page of the documentation :https://support.touchgfx.com/docs/development/scenarios/fonts-in-unmapped-flash , it only mentions fonts and not the actual texts. Does the same principle apply to texts as well, or is it not possible to store texts in an unmapped SPI external flash ? Or am i not looking at the right documentation ? Best regards,
Hello everyone,I'm experiencing an issue with TouchGFX 4.25.0 on a custom STM32H7-based board that we develop and sell as an OEM product, and I'm hoping someone can help me understand what might be causing it.Problem DescriptionWhen fonts and texts are configured to be stored in the external NOR Flash memory, we observe undesirable visual glitches and artifacts, particularly affecting text rendering. However, when the same fonts and texts are kept in the internal Flash, everything renders correctly without any issues.Current WorkaroundTo avoid the problem, I've modified the linker script to force FontFlashSection and TextFlashSection into internal Flash, while only ExtFlashSection (for images/assets) goes to external NOR Flash: /* TOUCHGFX Begin *********************************/ FontFlashSection : { *(FontFlashSection FontFlashSection.*) *(.gnu.linkonce.r.*) . = ALIGN(0x4); } >FLASH TextFlashSection : { *(TextFlashSection TextFlashSection.*) *(.gnu.linkonce.r.*) . = ALI
Hello Forum,I’m working with a custom display that uses an ST7789V controller (GRAM) connected via FMC and MDMA.The single framebuffer is located in .RAM2.The microcontroller is an STM32H750.The application (the .text section) runs from QSPI flash, while the internal flash contains only the bootloader.Some widgets (such as TextArea) are rendered correctly, but others (like ToggleButton) appear corrupted.Additionally, the background image shows horizontal line artifacts.Please compare the two pictures:The first image is the expected reference.The second image shows the artifacts — the button is distorted, and the horizontal lines in the background image should not be there.Has anyone experienced similar issues or has suggestions on what might be causing this behavior?
I like my digits to be monospaced so they don't dance, but I want letters to be proportional. I want to use 1 font for this. There are fonts that support this. These are called tabular fonts. They have monospaced digits and support figure space (0x2007) for alignment.There are fonts that support this that are also available in TouchGFX Designer:Segoe UIcalibriTahomaThis works. I wrote some code that replaces leading spaces before digits with digit spaces if the font supports it. This works really well and numbers no longer dance. Alternatively you can right-align a text field. But then you cannot have any text before it or you have to split the text in parts (so printf is not possible anymore and you might as well use two different fonts).Another way is to modify a font (make digits same width and remove kerning for digits, and add figure space). I've done this, but this is a lot of work. And this is not allowed for many fonts (our customer allowed us to do this).There are other fonts
I'm driving a customized LCD with STM32F469IIT6. However the image was shifted occasionnally. This issue is very hard to reproduce as it occurs 3time max a day. I'm pretty sure that the sync configs are correct. I noticed that the lane byte clock is close to its limit. Is there any advises or instructions ti solve this? I can give you more details about the issue.
Hello,I am unable to connect to TouchGFX version 4.26 to download or access the demo and example projects from the software download section.My system is connected to the internet; however, the application itself does not connect to the server.Please let me know how I can resolve this issue.
Hello everyoneI joined a somewhat finished project, which has working TouchGFX display using assets saved in external flash memory. The next phase is to enable A/B FW update, meaning that now the assets might end up either in the start or middle of the external flash. Ive been tasked with enabling the program to read the assets at runtime, deciding if they exist in the start or middle using a flag provided by the bootloader. So far, I managed to read Images, Videos, Audio and Texts from the back half of the flash by redirecting pointers with an offset, but im having real difficulties with the generated Fonts. For some reason I cant get it to work. My strategy is to intercept the GFX getFont function by a new class inheriting ApplicationFontProvider, but I simply cannot get it to work. Currently I dont think I even managed to connect it properly and I dont think the code even run through it.Is there some sort of example someone made for this scenario? Would greatly appreciate any help.&
Hello,I'm integrating the custom TouchGFX application with the SPI display on the custom hardware.Used MCU is the STM32WB55 display is based on the SSD1357, connected with the SPI.The application seem to hang during rendering of the first frame after the first vsync is called.This is the traceback:touchgfx::LCD16bpp::TextureMapper_L8_RGB565_Opaque_NearestNeighbor_GA::drawTextureMapScanLineSubdivisions() at 0x803702e touchgfx::LCD16bppSerialFlash::drawGlyph() at 0x8043fb0 touchgfx::LCD::drawStringInternal() at 0x8032bec touchgfx::LCD::drawStringLTR() at 0x8033018 touchgfx::LCD::drawString() at Texts.cpp:54 0x8030008 touchgfx::TextArea::draw() at TextArea.cpp:55 0x802431a touchgfx::Screen::JSMOC() at 0x80352e8 touchgfx::Screen::JSMOC() at 0x8035292 touchgfx::Screen::JSMOC() at 0x8035292 touchgfx::Screen::JSMOC() at 0x8035292 touchgfx::Screen::startSMOC() at 0x803533e touchgfx::Screen::draw() at 0x803536c touchgfx::Application::draw() at 0x803369c touchgfx::Application::drawCachedAreas()
MCU: STM32H7S7L8H6HIssue: Choppy scroll animations after regenerating TouchGFX/target/generated in CubeMX files with TouchGFX 4.26 (previously 4.24.1 or 4.25)SymptomsScroll wheel with custom containers (toggle buttons + text) now shows low FPS when swiping. The same widget was way smoother before regeneration. I have a device with old generated files still running smoothly, confirming the regression is in the regenerated target code (check video, the smoother one is the bottom one).Unfortunately, I haven't git the TouchGFX/target/generated because I thought it was being generated by TouchGFX Designer and not CubeMX, so I have no idea what code it was running before. Sure thing is, the scroll wheel logic in the GUI folder is the same for both things.I was already using TouchGFX Designer updated to 4.26 when everything was smooth so, I think the file generated by it are ok.What ChangedRegenerated via CubeMX, replacing:nema_hal.cOSWrappers.cSTM32DM
Hi,I am new on TouchGFX and UI making, i have make many screens with transition in between i want to add a qr Code,But when I just add a default qrcode no edit, but it dont show any thing, on that screen but when i change screen to different one and come back again the previous screen content print on qr code area.First screen:Qr screen: in the qr area the previous screen pixel shownQr next screen: when we go to next screen and again come back it again shows same issue. or if we set the qr screen as startup it shows black completely in the qr region. Kindly tell which issue causing this, as i does following troubleshoot from my sie;1- use the invalidate in constructor, setup screen of view, and with screen coding in view file.2- try to look every possible options like change qr versions, scale, ECC. mostly every option3- try https://www.qrcode.com/en/about/version.html qr version table combitions to correctly check4- change screens and try on different projects.screen 1:
I have a project that I've been working on for some time, but I stopped using it for a month and when I turn it on, the display only shows pixels of various colors, and I can't load the gfx onto the board. Everything was working fine before.If I start a new project, I can load the image.What could it be?
Title modified by an ST moderator to be inline with the content. My goal is to establish CAN communication between Riverdi display - RVT50HQSFWA01 and my laptop. After developing a test GUI using TouchGFX 4.26.0, when I added the code patch for CAN communication then I keep on getting various build errors due to comaptibility issue between TouchGFX and STM32Cube IDE packages. If anyone has tested CAN communication for Riverdi Display boards that can help then kindly reply. I have been trying to get this done for quite sometime now and have been stuck at what seemed like a very simple task. For the sake of reference, the latest build error is : make: *** No rule to make target 'C:/TouchGFXProjects/LIB_display_1/TouchGFX/target/CortexMMCUInstrumentation.cpp', needed by 'Application/User/TouchGFX/target/CortexMMCUInstrumentation.o'. Stop.make: *** Waiting for unfinished jobs...."make -j22 all" terminated with exit code 2. Build might be incomplete. 06:43:53 Build Failed. 2 e
Hi,I've a project with TouchGFX and FreeRTOS on an STM32H7RS. I was updating the library, regenerating the code from CubeMX but, I've noticed that, for some reason, the file \Appli\TouchGFX\target\generated\nema_hal.c has changed// from - #define NEMAGFX_MEM_POOL_SIZE 16128 /* NemaGFX byte pool size in byte */ // to + #define NEMAGFX_MEM_POOL_SIZE 24320 /* NemaGFX byte pool size in byte */but I can't find in the .ioc inside the CubeMX where this value is set and why it has been changedThanks
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.