2024-05-13 01:00 AM
Hi there!
My goal is to use the RIVERDI example provided in Touch GFX and import it into the CubeIDE to add some peripherial features as ADC and CANFD. When the .ioc file is imported into CubeIDE all the generated folders are empty and even the .ioc file is missing despite the fact that all folders are present in the file system.
so far I 've
Thanks for your help.
Cheers!
2024-05-13 03:27 AM - edited 2024-05-13 03:27 AM
Update
The files are getting generated when using CubeMX only not on CubeIDE import, but the Project does not offer a "Build Project" or "Clean Project" option neither when clicking o the higher project nor on the CM4 or CM7 project. So i am unable to build ...
Cheers!
use the CubeMX Code Generation dialog >> Open Project
Import dialog >> Yes
several Project extists dialog >> Yes and several Delete Resources >> OK
and see al the files in the CubeIDE
2024-05-13 04:46 AM - edited 2024-05-13 06:02 AM
Compiling CM7/USB_HOST/App/usb_host.c
Compiling CM7/USB_HOST/Target/usbh_conf.c
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x480000, State 0x10000
D:\TouchGFX\4.23.2\env\MinGW\msys\1.0\bin\echo.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
gcc/makefile_cm7:519: recipe for target 'CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/USB_HOST/Target/usbh_platform.o' failed
make[3]: *** [CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/USB_HOST/Target/usbh_platform.o] Error 1
make[2]: *** [generate_assets] Error 2
make[3]: Leaving directory 'd:/git/SouceCode/MyApplication'
gcc/makefile_cm7:438: recipe for target 'generate_assets' failed
make[2]: Leaving directory 'd:/git/SouceCode/MyApplication'
Makefile_cm7:51: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory 'D:/git/SouceCode/MyApplication/gcc'
../../gcc/Makefile:10: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
Ok digging deeper to the cause I used the "RIVERDI_70STM32H7" example provided by TouchGFX
>> create >> by Partners >> RIVERDI_70STM32H7. I added no GUI elements at all and try to run it on a RIVERDI 70STM32H7_Rev1.2 board
Memory Programming ...
Opening and parsing file: extflash.hex
Error: The file d:/git/SouceCode/MyApplication/CM7/TouchGFX/build/bin/extflash.hex is invalid
d:/git/SouceCode/MyApplication/gcc/include/flash_sections_int_ext.mk:2: recipe for target '_extflash_' failed
make[2]: *** [_extflash_] Error 1
make[2]: Leaving directory 'd:/git/SouceCode/MyApplication'
Makefile_cm7:54: recipe for target 'flash' failed
make[1]: Leaving directory 'D:/git/SouceCode/MyApplication/gcc'
make[1]: *** [flash] Error 2
../../gcc/Makefile:10: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
Example:
Compiling CM7/USB_HOST/App/usb_host.c
Compiling CM7/USB_HOST/Target/usbh_conf.c
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x480000, State 0x10000
D:\TouchGFX\4.23.2\env\MinGW\msys\1.0\bin\echo.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
gcc/makefile_cm7:519: recipe for target 'CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/USB_HOST/Target/usbh_platform.o' failed
make[3]: *** [CM7/TouchGFX/build/Riverdi_70STM32H7/CM7/USB_HOST/Target/usbh_platform.o] Error 1
make[2]: *** [generate_assets] Error 2
make[3]: Leaving directory 'd:/git/SouceCode/MyApplication'
gcc/makefile_cm7:438: recipe for target 'generate_assets' failed
make[2]: Leaving directory 'd:/git/SouceCode/MyApplication'
Makefile_cm7:51: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory 'D:/git/SouceCode/MyApplication/gcc'
../../gcc/Makefile:10: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
so the core problem is
Couldn't reserve space for cygwin's heap
I saw the git hack at Solved: Compilation error: "*** Couldn't reserve space for... - STMicroelectronics Community
but my git version is already updated 2.45
$ git -v
git version 2.45.0.windows.1
Cheers!