cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX does not build.

ramza0925
Associate

When I install TouchGFX and run the Designer to run the example code, the build fails with an error as shown below.

=======================================================================================

Compile
    make -f ../gcc/Makefile -j10 
    Reading TouchGFX/application.config
    Reading TouchGFX/target.config
    0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
    AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x160000, State 0x10000
    E:\TouchGFX\4.24.1\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
    gcc/Makefile:375: recipe for target 'TextKeysAndLanguages' failed
    make[1]: *** [TextKeysAndLanguages] Error 1
    make[1]: *** Waiting for unfinished jobs....
    ../gcc/Makefile:49: recipe for target 'all' failed
    make: *** [all] Error 2
    Failed
Failed

=====================================================================================

No matter how many times I uninstall and reinstall CubeProgrammer, ST-Link, and TouchGFX, the result is the same.
On my secondary PC (laptop), it runs without any problems, but on my main PC, it gives me an error.
If you have a solution, please let me know.

1 REPLY 1
LouisB
ST Employee

Hello @ramza0925 ,

This is not specific to TouchGFX, there's a solution here : https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/compilation-error-quot-couldn-t-reserve-space-for-cygwin-s-heap/td-p/247873.

BR,

Louis BOUDO
ST Software Developer | TouchGFX