Discuss STM32 and TouchGFX implementations, including configuration, debugging, and optimization.
Most recent activity
Hi,I'm working with TouchGFX with STM32F746BG, and I have an issue when there is animation.You can find a video of the problem here : https://youtu.be/X-D-NkGCN5kI also have the same issue when I add an animation between screen.At the beginning I was working without TouchGFX (and without external ram), playing with LTDC layer, moving and everything and I no issue.Any idea where this could come from ? TonyEDIT: Updated video to the right one
Hello everybody,I created a simple application with TouchGFX Designer (4.12.3) (a screen with a central button). My target card is SMT32h743_EVAL2 and the toolchain used is Keil uVision (5.28.0.0). I tried to load the compiled application using Keil, but when I start the debugger I have a HardFault while running touchgfx_init() function. Using "Call Stack + Locals" detects the HardFault in the execution of CRC_Lock() (perhaps an internal touchgfx library function). does anyone have the same problem? Can anyone direct me in the right direction?Thanks.
I follow same as in this video https://www.youtube.com/watch?v=ZQA2lAsIdZA but not showing UI template in display, its show only black screen, when build the project there is no errors and warnings,
I made a simple project with slider and wildcard.Why do I have a "?" instead of the value, even with wildcard range with 0-9Any idea ?
For TextArea with wildcard initial value from resource ID is not displayed.Single use value is working
I am developping a vu-meter with STM32F476G-DISCO + TouchGFX 4.12.3.The line is plotted but there are some strange effect in some positions probably a bug of the line function or graphic environment.Also in the simulation the same effect.https://youtu.be/ZtPSxc7IfpM here some better result with the optional codehttps://youtu.be/BvWxYT_OiOU I can share the complete project if necessary for the debug.void Screen2View::handleTickEvent() { if (count < 2) { count++; return; } // optional code to get a better result //left.setLineWidth(0); //left.invalidate(); count = 0; if (value < 1024) value += 10; else value = 0; float value1 = (value * 68 / 1022) + 56; plot((float)value1, 179.0, 350.0, 128.0, 313.0); left.setLineWidth(2); left.invalidate(); } void Screen2View::plot(float level, float x0, float y0, float ymax, float r) { #define C 3.141592/180.0 char buf[30]; float s, c, r2, x1, x2, y1, y2; s = sin(level *
Hi, I have made a code in keil using CMSIS for 16x2 LCD.I am not able to get corresponding data according to data send on the data port.I was unable to identify the problem. I have checked the data the GPIO port is getting is correct,but LCD shows some other data. Can somebody help to identify the problem?Code:-#include "stm32l4xx.h"/* PA0 --->PA7 PORT FOR DATA RS--->PC0 EN--->PC2 RW--->PC1*/void lcdcmd( uint8_t);void lcddata(uint8_t);long int i;int x=0x80;RCC_TypeDef *clock; GPIO_TypeDef *GPIO; GPIO_TypeDef *GPIO1; //clock=RCC; //GPIO=GPIOA;int main(){ /*RCC_TypeDef *clock; GPIO_TypeDef *GPIO;*/ clock=RCC; GPIO=GPIOA; GPIO1=GPIOC; clock->CR &=0x00000000; clock->CR |=(1<<16); while(!((clock->CR)&(1<<17))); clock->CFGR &=0x00000000; clock->CFGR|=0x0A0; clock->AHB2ENR&=0x00000000; clock->AHB2ENR|=0x05; GPIO->MODER &=0xABFFFFFF; GPIO->MODER &=0xABFF5555; GPIO1->MODER &=0xFFFFFFFF; GPIO1->MODER &=0xF
Hi,I am try adding image on my application with new TouchGFX Designer version. I added image in assets file in project. I can see added image to "Images" tab. But I can't see anything in project tab of widgets image selection.How can i solve this problem?
In TouchGFX it is possible to call a C function when a flexi button is clicked (Trigger "touch") or released (Trigger "clicked").Is it possible that the same button calls an "I_m_pressed()" function when you stay button clicked AND sends an "I_m_released()" as you release it?Thanks a lot!
Hi @Martin KJELDSEN On a screen I want to move two large images (one has transparency). I've implemented it like in your birdgame example (with the moveto(x,y) method.Now I recognized that the animation is very slow and the rendering time is very long (>30ms). I don't know why this take so long. I measured it with the RENDER_TIME GPIO and also in SW. I see that the TouchGFX Library is active for more than 30ms.Do you have any idea where the issue come from? Below you will find the implementationThank youBest regardsMarco#include <gui/containers/container_moving_waves.hpp> #include <BitmapDatabase.hpp> #include <touchgfx/Color.hpp> container_moving_waves::container_moving_waves(): m_waveForeground(), m_waveBackground(), m_animationState(AnimationState::AnimationRunning), m_tickCounter(0U), m_tickinterval(1U) {} void container_moving_waves::initialize() { container_moving_wavesBase::initialize(); initializeLayer(m_waveBackground, BITMAP_WA
Hi , TouchgfxI am using the ScrollList widget and want to realize the function like this : When you press the screen , ScrollList corresponding list will detect your pressed motion . As you can see in the follow picture : when your finger keep touching the list "Reset" , its background color will changed to white and font color change to black . when you relase touch motion , background color will disappear and font color change to white . And then goto ScrollList selected item handler function.
..
Hi is it possible to create the white gradient haze on the inside of the 2 progess circles. I f yes how to do this? Thanks a bunch,Eddy
Hi,I am using STM32F778AI and I use PC7 as PWM generation . When I added TouchGFX it stopped generating code for Timer 3 and if I remove Timer 4 it cannot be added with the same reason.Any help ?Thanks!!David
Hi,Does anyone know how to solve the compile issue below.Thanks,Eddy1>------ Build started: Project: Application, Configuration: Debug Win32 ------1>Using ImageConvert to generate BitmapDatabase files1>Creating compile items for all generated source files: ..\..\generated\fonts\src\ApplicationFontProvider.cpp;..\..\generated\fonts\src\FontGetters.cpp;..\..\generated\fonts\src\Font_verdana_10_4bpp.cpp;..\..\generated\fonts\src\Font_verdana_20_4bpp.cpp;..\..\generated\fonts\src\Font_verdana_40_4bpp.cpp;..\..\generated\fonts\src\Kerning_verdana_10_4bpp.cpp;..\..\generated\fonts\src\Kerning_verdana_20_4bpp.cpp;..\..\generated\fonts\src\Kerning_verdana_40_4bpp.cpp;..\..\generated\fonts\src\Table_verdana_10_4bpp.cpp;..\..\generated\fonts\src\Table_verdana_20_4bpp.cpp;..\..\generated\fonts\src\Table_verdana_40_4bpp.cpp;..\..\generated\images\src\BitmapDatabase.cpp;..\..\generated\images\src\__designer\blue_slider_horizontal_medium_indicators_slider_round_***.cpp;..\..\generated\image
HiThere seems to be something wrong with font compilation on my system after updating from 4.10 to 4.12.3. The flash usage of my project has ballooned by 400kB more now. I have traced this to the font generator. This is now including a lot of spurious characters that are not used as far as I can tell.The .txt files in generated/fonts seem to have the required subset of glyphs listed. But the .cpp files include a lot of strange extra code points like 0xE000-0xE14A ("private use" range). And U+0915..U+0963 ("Devanagari").This is when generating code from Designer which looks like it calls make -f simulator/gcc/Makefile assets -j10to generate the assets?I tried one of the stock projects and this does seem to work OK.Windows 10 is set to English/United Kingdom.Any ideas?thanksJohn
I'd like to only update variables, which are shown on the current screen. How do I get the current screen in a switch case structure, in the model::tick() function. I tried to alter the tick function to get the currentScreen parameter from the FrontendApplication.hpp as a variable, but this did not work
Hello,I tested Gauge widget.So, I modified source code to change needle shape in Gauge.hpp.// triangle original : ShapePoint<float> points[3] = { { -2.5f, 0}, {0.0f, -70}, {2.5f, 0} };// rectanglemodify : ShapePoint<float> points[4] = { { -1.0f, 0}, {-1.0f, -90}, {1.0f, -90}, {1.0f, 0} };It was good.But, I want to apply image file instead of shape point.How to change needle as image file?Let me know it!Best regards,Thanks.
Hi,I use cubeIDE with STM32F778AI and trying to configure amoled with DSIHost , I made it work with Low power communication .Now I am trying to make High performance communication. I changed to High power but it doesn't work. I need to change something to enter to High speed ?Another question, I must use TE pin ? Can I configure DSI without TE pin ?Thanks,David
I am using freeRTOS , there are two threads one is for TouchGFX gui task and other for my main task.I have given 4096*4 bytes of stack for each task and heap size in freeRTOS config is 65536Now, when I declare a string controller freezes. I want to use strings to manipulate .Ini file . This looks like a memory overflow or something
So who was the bright spark who decided that both encode and decode should use the same callback function names? Duh! Means I can't even make them static to isolate them! Doesn't the JPEG hardware know whether its doing an encode or a decode?Also, the JPEG utilities have compile time (rather than run time) selection of the image format. So much for encoding RGB565 from a camera and decoding ARGB8888 for animations.Not happy having to play with (yet more) DMA2D format conversions to address the inadequacy of the interface
Is it possible to create a Text without ueing the Designer first? Seems like everything has to be done through the Text Manager.
Hello, I am new to STM32. I'm using ST32F429 Discovery board and I'm tring to read audio samples from ADC1 (PA5)+DMA, which is trigged by TIM2, and visualize the data on the LCD screen using BSP driver. I am using STM32CUBEIDE to generate source codes. I'm able to toggle the green LED every time the adc conversions (10 data) is completed. However, when I initialize the LCD using BSP_LCD functions, the led is not blinking. Please help me solving this problem.Thank you
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.