Discuss STM32 and TouchGFX implementations, including configuration, debugging, and optimization.
Most recent activity
I have gone through the methods that are gui generated when change screen transition is done through the designer. I have also gone through the previously asked question how to implement switchscreen() in touchgfx. However, sadly I don't understand exactly how to fulfill my requirement. I want to carry out transition whenever a certain boolean variable becomes true. The variable becomes true after response from the hardware. Please guide me on how to implement this. I shall be thankful.
Hello, I have user parameters in my device and every single parameter will have 5 image. Image will be choosen acorrding the working scenario. I want to store bitmap ID in my memory area so want to get bitmap ID from C++ code.Touchgfx generates "BitmapDatabase.hpp" . It ıncludes bit map IDs like below // Generated by imageconverter. Please, do not edit! #ifndef BITMAPDATABASE_HPP #define BITMAPDATABASE_HPP #include <touchgfx/hal/Types.hpp> #include <touchgfx/lcd/LCD.hpp> #include <touchgfx/Bitmap.hpp> const uint16_t BITMAP_A_ID = 0; const uint16_t BITMAP_B_ID = 1; namespace BitmapDatabase { const touchgfx::Bitmap::BitmapData* getInstance(); uint16_t getInstanceSize(); } #endifand I try to add below two lines to my C fileextern "C" const uint16_t BITMAP_A_ID ; extern "C" const uint16_t BITMAP_B_ID ;orextern const uint16_t BITMAP_A_ID ; extern const uint16_t BITMAP_B_ID ; But both lines caueses error and I cant reach to bi
Hello,I am using TouchGFX 4.10 but want to use the latest version i.e. 4.13. The issue I am facing in this version is that there is no Keil Compiler I.e. I can't edit the generated code in keil henceforth. Want to know if there is anything that I can do to get the generated code of TouchGFX in Keil compiler.Thank You and regards.
I need to measure memory usage in my TouchGFX application. Is there a way to do this?
Hi Community,I'm trying to get an image from a camera with a resolution of 752x480.In this case, the size (752 * 480) / 4 = 90240 exceeds the maximum DMA transfer length 65535.And I get a broken image: 1/4 of the image is duplicated.Original image:DMA MemToMem initialization:void MX_DMA_Init(void) { /* DMA controller clock enable */ __HAL_RCC_DMAMUX1_CLK_ENABLE(); __HAL_RCC_DMA1_CLK_ENABLE(); __HAL_RCC_DMA2_CLK_ENABLE(); /* Configure DMA request hdma_memtomem_dma2_channel1 on DMA2_Channel1 */ hdma_memtomem_dma2_channel1.Instance = DMA2_Channel1; hdma_memtomem_dma2_channel1.Init.Request = DMA_REQUEST_MEM2MEM; hdma_memtomem_dma2_channel1.Init.Direction = DMA_MEMORY_TO_MEMORY; hdma_memtomem_dma2_channel1.Init.PeriphInc = DMA_PINC_ENABLE; hdma_memtomem_dma2_channel1.Init.MemInc = DMA_MINC_ENABLE; hdma_memtomem_dma2_channel1.Init.PeriphDataAlignment = DMA_PDATAALIGN_WORD; hdma_memtomem_dma2_channel1.Init.MemDataAlignment = DMA_MDATAALIGN_WORD; hdma_memtomem_dma2_chann
Run Simulator Generate Done Generate Assets make -f simulator/gcc/Makefile assets -j10 Converting images Done Post Generate touchgfx update_project --project-file=../EWARM/STM32F7508_DISCO.ewp --gui-group-name=Application/User/TouchGFX/gui --generated-group-name=Application/User/TouchGFX/generated && touchgfx update_project --project-file=simulator/msvs/Application.vcxproj Done Compile make -f simulator/gcc/Makefile -j10 Converting images Compiling gui/src/pressurescreen_screen/PressureScreenView.cpp gui/src/pressurescreen_screen/PressureScreenView.cpp: In member function 'virtual void PressureScreenView::UpButtonClicked()': gui/src/pressurescreen_screen/PressureScreenView.cpp:27:23: error: 'textCounterBuffer' was not declared in this scope Unicode::snprintf(textCounterBuffer, TEXTCOUNTER_SIZE, "%d", counter); ^~~~~~~~~~~~~~~~~ gui/src/pressurescreen_screen/PressureScreenView.cpp:27:23: note: suggested alternative: 'IRpcChannelBuffer' Unicode::snprintf(textCo
Hello everyone ,I am new to touchgfx. I have a custom board with STM32f769II controller ,SDRAM with 16bit data bus from Micron,QSPI flash and with 7inch TFT display (RGB888). I firstly try to configure only LTDC to display a image on LCD from flash i got success so means i am able to configure LTDC rightly. Then i try to iniatlize SDARM i just give LTDC frame start address as 0xc0000000(sdram starting address) and copy the image data from flash to SDRAM. It works fine for me. Means LTDC and SDRAM are intilized ok. So then i moved toward TouchGFX . I create a project using stmcubeIDE initialize touchgfx and generate code but its not working for me. I also have 32f746Disco board in same way i initialize the board using CUBE IDE but it works fine. Then i try to Compare both codes(Because both have stm32f7,same SDRAM & Same QSPI) but could not found any diff. But on custom board its not working. So please let me know how to debug where is my mistake?Is there is any way suppose we set l
Hi community,I've been trying to reproduce camera + LCD example from the STM32Cube MCU Package for STM32H7 series (projects/STM32H7474I-DISCO/Examples/DCMI/DCMI_CaptureMode) on the STM32CubeIDE. My goal is to configure the peripherals using the embedded CubeMX: DCMI to the camera, DMA2D to transfer from camera to TFT LCD (DSIHOST + LTDC). I'm using a STM32H747-DISCO board with a STM32F4DIS-CAM. Does anyone knows how to setup the camera, dma2d and tft using the CubeIDE (Version 1.2.0). It would be very useful if ST provide us project examples including the .ioc files.Thanks in advance.This new H7 series seems to be amazing!
Hello.....I want to know about the swiping .Basically i want to implement my own swipe for that i want to know at what place your handling the swipe control and how...i hope you will help me.I am currently working on STM32L4R9AI-eval.Thank you....
I am getting the following code error. The program build successfully in the simulator but when I try 'Run Target' it fails.I use the following Build settings. And the detail log is below.Run Target Generate Done Generate Assets make -f simulator/gcc/Makefile assets -j8 Generating generated/texts/src/Texts.cpp Generating generated/texts/src/LanguageGb.cpp Done Post Generate touchgfx update_project --project-file=simulator/msvs/Application.vcxproj Done Post Generate Target touchgfx update_project --project-file=../STM32H750B-DK.ioc --platform=m7 Done Compile make -f ../gcc/Makefile -j8 Generating TouchGFX/generated/texts/src/Texts.cpp Generating TouchGFX/generated/texts/src/LanguageGb.cpp Compiling TouchGFX/generated/fonts/src/Font_verdana_40_4bpp_0.cpp Compiling TouchGFX/generated/fonts/src/Table_verdana_80_4bpp.cpp Compiling TouchGFX/generated/fonts/src/Font_verdana_80_4bpp_0.cpp Compiling TouchGFX/generated/fonts/src/Kerning_verdana_40_4bpp.cpp Compiling TouchGF
Hi,I've been wondering, what would be the quickest way to shift a rectangle of any size that is already on screen, and therefore in the current frambuffer one pixel column to the left, and then delete (turn white or something) the leftmost column?So far I've found the functions copyFBRegiontoMemory and BlitCopy, but that would require to load everything and then write it again to the framebuffer. Using DMA there should be another way, which doesn't involve loading everything but simply shifting.
Hi all,I am trying to configure my stm32f429i-disc1 with the lates CubeMX 5.5 and TouchGfx 4.13. I have followed the instructions from here: https://touchgfx.zendesk.com/hc/en-us/articles/360010921760-TouchGFX-HAL-Development, but my display is still all white (there should be red background with simple 'hello world' string on it).The project compiles and there is also 1s_cnt which increments properly. I've tried to debug the project and noticed that program enters inside functions: void StartScreenPresenter::activate() void StartScreenView::setupScreen()on startup but only once.Both the board and the cable are ok, because I can flash MCU with other project and then screen works fine.Have you got any ideas what I am doing wrong?
Hi,I have a problem with STM32CubeIDE 1.2.0 and TouchGFX 4.13.0.I use the STM32F746G-DISCO board. First, I created a project with TouchGFX to check if the screen works. It works well !After that, I created a project with CubeIDE. I configured the pinout manually and I was able to display an image on the board via a .h file.When I add TouchGFX Generator in "Additional Software", it creates the TouchGFX folder. I changed the .touchgfx file but the screen still black when I launch the project on the target.Could you help me please ?It is very important.
Hi,I have been experimenting with various languages including Arabic.For the most part every thing is great, but we seem to be missing the GSUB table to handle Arabic ligatures correctly.How do I enable the generation of this?I tried the Arabic example project in the Designer also, but that doesn't seem to generate them either.We are using version 4.13.0.Thanks
hi everyone,I want to make the digital clock work, how can I do that?
Hallo,are you planning to bring TouchGFX and an embedded webserver together in the future? Customers often want a GUI and a web server together on one device. Actually, everything would be available in the TouchGFX Designer to create the data structure (html pages, graphics) for an embedded web server, which shows the same GUI as on the touch display on a web browser. It would be a great option to create an embedded WebGUI from the TouchGFX Designer! Thanks!
Have a project using CubeMX 5.5.0 from within CubeIDE 1.2.1 on Windows 10 for an STM32F767 using FW 1.15.0. Its a TouchGFX project so it, by default uses FreeRTOS. Whenever I regenerate code, I get this in the DefaultTask:/* USER CODE BEGIN Header_StartDefaultTask */ /** * @brief Function implementing the defaultTask thread. * @param argument: Not used * @retval None */ /* USER CODE END Header_StartDefaultTask */ void StartDefaultTask(void const * argument) { /* init code for */ MX__Init(); /* USER CODE BEGIN StartDefaultTask */ printf("\tStarting default task...\n"); /* Infinite loop */ for(;;) { HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin); osDelay(500); } /* USER CODE END StartDefaultTask */ }The pin toggle is of course user code but what is MX__Init()? Note two underscores between MX and Init. I thought maybe it was a typo and is supposed to be MX_Init() but there is no function named that either? Is this supposed to be code that is run or a bug/typo?*.ioc file
I am using STM32 series mcu and touchghx GUI. Can I load mp4 or any animation format as my splash page? If yes, could you provide any sample code?
Hi,the display I'm using have a pixel pitch that is 0.1926x0.179 mm. Where in the code do I set that? Right now the images on target looks a bit squished, specially the circular ones.Thanks
We are investigating the use of TouchGFX on a new product, but one very important requirement for us is to be able to generate the font files from our own proprietary tool, without the end user having to install any TouchGFX-related software.In our previous products, we used emWin, where the SIF-format was not documented, but could be quite easily dtermined from the generated C-code. For TouchGFX this seems more difficult. Is there any description of the font file format necessary for loading in a BinaryFont?
hi everyone,i wanted to create a project with touchGFX but there are errors, i just create the graphic interface, i didn't add any code!even though when i tried to upload to my card an example it said error too!how can i resolve this?
Hello! In this menuI can't see X-CUBE_TOUCHGFX.I downladed it from ST.COM, but when I try to install zip, I see message How to install X-CUBE-MX???
HI!I'm currently working on a project using stm32F746-Disco board and Touchgfx.As you know, The stm32F746-Disco board used 128 Mbit QSPI memory.I'm running out of 128 Mbit SPI memory, so I'd like to use a higher capacity QSPI memory(256MBit).However, the Cube example or STM32CubeProgrammer has only 128Mbit QSPI EX Flash Loader.I want to use STM32CubeProgrammer or CubeIDE to store data in different capacity QSPI memory.Can I get some references or ideas for this? :dizzy_face:
Is there an inbuilt language translator for TouchGFX? For example, if i create an application in english but want an option for other languages as selected by user , do i need to create the same one again or there is an option for auto generated code which can display in the chosen language?I will keep a startup screen which asks for preferred language. If user selects english , my code will be executed else the other one.
This error broke my project file, I cannot open it anymore."String was not recognized as a valid DateTime."Which string? Where? How to fix the project file?Might have to do something with regional time settings. I use Finnish/Finland Windows time, and recently switched it. I cannot recover the project file anymore by switching back to English. Maybe date in dot format (17.1.2020 vs. 1-17-2020) breaks the time string parser of TouchGFX designer.
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.