cancel
Showing results for 
Search instead for 
Did you mean: 

X-CUBE-TOUCHGFX 4.22.0 is out!

Osman SOYKURT
ST Employee

TouchGFX 4.22.0 is now out.

Please follow this link to download it.

Release details :

  • Release date: June 19th, 2023

  • New TouchGFX Designer Features:

    • Added ability to specify L8 compression for images.
    • Added direct user communication.
    • Improved proxy authentication management.
    • Added description tooltips to the different image formats.
    • Containers can now be marked as cachable from inside TouchGFX Designer.
    • Drag and drop SVG images to TouchGFX Designer now creates an SVG image widget.
    • Added the ability to cancel "Generate Code", "Run Simulator" and "Run Target" commands.
    • The MJPEG software converter is now included when video is enabled in additional features.
    • Right-clicking a widget in the canvas tree view when having multiple widgets selected now affects all selected widgets.
    • The context menu inside the image tab is now identical between the tree view and the image table.
    • When deleting multiple text groups inside the text tab, the prompt now asks for confirmation for all selected text groups.
    • Added SetBorderSize action.
  • Bugfixes in TouchGFX Designer:

    • Fixed discrepancy between canvas and simulator when positioning texts.
    • Fixed bug where the "Run Simulator" tooltip would not disappear.
    • Fixed faulty memory usage when using large values for SVG image widget.
    • Fixed errors regarding interactions sometimes not showing.
    • Fixed faulty keyboard focus in the widget menu, when previous focus is outside of TouchGFX Designer.
    • Fixed renaming an interaction not triggering a refresh of the name in places where the renamed interaction is used.
    • Fixed scenarios where a backup .touchgfx file would be unnecessarily created.
    • Fixed whitespace characters in wildcards being ignored and removed by the Designer.
    • Fixed "Unsaved Changes" popup appearing sometimes when no changes were made.
    • Fixed crash when loading a read-only .touchgfx file.
    • Resizing tab with the mouse made easier.
    • Moving TouchGFX Designer to a secondary extended screen could cause TouchGFX Designer to not show the canvas.
    • Fixed issue where pressing the F5 key twice would run the simulator but TouchGFX Designer would output an unwarranted error in console.
    • Cleaned up some generated code for ScrollList.
    • Fixed having a space in Windows path would cause different behaviour when opening a project from inside TouchGFX Designer versus opening the file directly from the Windows path.
    • Fixed dragging texts in the text tree view would have no effect.
    • Generating code which includes button widgets could make the unsaved circle appear after generating code.
    • Fixed edits made to files via Visual Studio not being detected by TouchGFX Designer.
    • Removed an extra generated semicolon from ScreenPresenter.hpp.
    • Fixed faulty keyboard focus in the text tab.
    • Fixed a bug where copy and pasting a screen with a Set Text interaction, and then deleting the interaction from one of the screens, would wrongly remove the text used from both interactions.
    • Fixed the red error dot only showing on a screen tree view node when the node is collapsed.
    • Enlarged the splitter area needed to change the width of text tree tab.
    • Fixed code generation in file FrontendApplicationBase.cpp.
    • Fixed removing the hour and the minute hand in an analog clock causing the second hand to not show on canvas.
    • Fixed having multiple text translations for the same language corrupting the project.
    • Fixed deleting an interaction which triggers another interaction would not giving an error on the second interaction.
    • Fixed videos showing with different colors in the simulator when the project uses 32 bits per pixel.
    • Fixed elements being rendered on the canvas in reverse order for dynamic/static graphs.
  • New TouchGFX Core Features:

    • Added L8 Image Compression for 16bpp, 24bpp and 32bpp framebuffer formats.
    • Added IAR 9.20.1 libraries for cortex M0+, M4f, M7, M33, and M55. Removed IAR 7 library for M7.
  • Bugfixes in TouchGFX Core:

    • Deleting the last page in a SwipeContainer was not possible.
    • Unicode::snprintfFloats() rounding error fixed.
    • Setting new bitmaps on a Slider would not update the screen correctly.
    • Slider now uses int16_t consistently to allow for use of negative values. Indicator position is more precisely calculated.
    • ScrollWheel now respects setOvershootPercentage().
    • Fixed parser error in SVG ArcTo command.
    • Fixed assert in LCD.cpp regarding Wide Text with ellipsis.
    • Fixed issue on GPU2D (NeoChrom) targets where changing X and Y angle of TextureMapper widgets did not render correctly.
    • Fixed issue on GPU2D (NeoChrom) targets where HAL::lockFrameBuffer() did not properly process queued draw operations prior to returning.

Feel free to learn more about our new features by looking into our documentation !

 

Attention : TouchGFX Designer 4.22.0 MUST be used with STM32CubeMX 6.8.0 or above (link to download STM32CubeMX 6.8.0).

Attention : If X-CUBE-TOUCHGFX 4.22.0 is not available in STM32CubeMX software yet, please navigate to "Help > Manage embedded software packages > STMicroelectronics > X-CUBE-TOUCHGFX". Then click on "From Local ..." and navigate to the x-cube-touchgfx-4-22-0.zip file to install the new pack inside STM32CubeMX.

Osman SOYKURT
ST Software Developer | TouchGFX
24 REPLIES 24

Hi @Osman SOYKURT ,

Appreciate your response! Weirdly, this crash actually happens on ALL projects, including the provided templates/examples. Oddly enough, I've been able to open my project on a co-workers computer, as well as an AWS EC2 Windows VM I spun up as a test. I'm running off a fresh install of Windows 10 Professional Edition on a QEMU/KVM virtual machine. I filed a support ticket so I'll reply again in this thread if I figure out what specifically on my machine is causing the crash!

Roger.ch
Associate III

After I switched from version 4.21 to 4.22, I can no longer generate the target.

The TouchGFX simulator and under Visual Studio the program runs without problems.

Run Target
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j10 -Wno-error=sequence-point
Reading ./application.config
Reading ./target.config
Done
Post Generate
touchgfx update_project --project-file=../EWARM/EVK101008AB.ewp --gui-group-name=Application/User/TouchGFX/gui --generated-group-name=Application/User/TouchGFX/generated && touchgfx update_project --project-file=simulator/msvs/Application.vcxproj && touchgfx update_project --project-file=../MDK-ARM/EVK101008AB.uvprojx --gui-group-name=Application/User/TouchGFX/gui --generated-group-name=Application/User/TouchGFX/generated
Done
Compile
make -f ../gcc/Makefile -j10 -Wno-error=sequence-point
Reading TouchGFX/application.config
Reading TouchGFX/target.config
Linking TouchGFX/build/bin/target.elf
Middlewares/ST/TouchGFX/touchgfx/lib/core/cortex_m7/gcc\libtouchgfx.a(PainterRGB888.o): In function `touchgfx::PainterRGB888::tearDown() const':
(.text._ZNK8touchgfx13PainterRGB8888tearDownEv+0x0): undefined reference to `touchgfx::paint::tearDown()'
collect2.exe: error: ld returned 1 exit status
gcc/Makefile:431: recipe for target 'TouchGFX/build/bin/target.elf' failed
make[2]: *** [TouchGFX/build/bin/target.elf] Error 1
gcc/Makefile:427: recipe for target 'generate_assets' failed
make[1]: *** [generate_assets] Error 2
make: *** [all] Error 2
../gcc/Makefile:54: recipe for target 'all' failed
Failed
Failed

Can you give me a hint.

Regards, Roger

helioz
Associate II

This version still crashes when I try and create a new project on a network drive.

https://community.st.com/t5/touchgfx-and-gui-mcu/create-new-project-quot-file-already-exists-quot-it-doesn-t/td-p/187364

Hi @HRidd.2 

Do you have any news about this bug? I have exactly the same problem here. Setup a new Windows 10 Pro VM and im not able to open the project with V4.22.0. It always throws the error "Failed to load native freetype library!". My application uses just one text element with the default verdana.ttf font which is also part of the example project. 

On several other machines it runs without problems.

Does this error only occur, because we are running TouchGFX within a VM?

Hi @MMess.1,

I am having the same issue "Failed to load native freetype library" error. Also running Touchgfx in a VM. Were you able to solve it or make any progress?

JJYodd
Associate II

Hi @Osman SOYKURT 

I recently updated to TouchGFX 4.22.0. When I try to update/run my project I get the"Failed to load native freetype library" error. I am still able to run the project on the previous version 4.21.4 I am running TouchGFX in the Windows 10 Virtual Machine setting. Is there any fix for this? Do we know why it's happening? Please help!

Hi @JJYodd

yes i was able to fix it. You have to install the visual c++ redistributable package from Microsoft. The freetype library depends on it but is not installed by touchgfx.

Best regards

This worked!!! Thanks a lot.

tarmogr
Associate II

Have I found another bug?

Cant create animated images. It says I have duplicate name images. But I dont.

tarmogr_0-1699357513595.png

tarmogr_1-1699357571829.png

Source folder:

tarmogr_2-1699357624953.png

 

It is not even possible to have two same name images in same directory.