cancel
Showing results for 
Search instead for 
Did you mean: 

RIVERDI H757 dual core from TouchGFX to CubeIDE

PGrif.2
Associate III

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.

PGrif2_2-1715586427167.pngPGrif2_4-1715587124534.png

so far I 've

  • created an new  project named "RIVERDI-H757-Connection-Test" based on the Riverdi STM32 Embedded 7" Display example project provided in TouchGFX 4.32.2 Designer
  • added two screens to show the GUI is compiling (OK) and runs in the TouchGFX simulator (OK)
  • used this article How to clone a dual core project in STM32CubeIDE - STMicroelectronics Community provided by STM and reanmed all occureneces of "Riverdi_70STM32H7" to "RIVERDI-H757-Connection-Test"  within the
    • .ioc
    • .project
    • CM4 .project
    • CM4 .cproject
    • CM7 .project
    • CM7 .cproject files
  •  renamed  "Riverdi_70STM32H7.ioc" into "RIVERDI-H757-Connection-Test.ioc"

PGrif2_0-1715585901208.png

  • opened the .ioc file in CubeMX 6.10.0. changed the project name and checked the latest firmware package V1.11.2

PGrif2_1-1715586078883.png

 

Thanks for your help.

 

Cheers!

 

 

2 REPLIES 2
PGrif.2
Associate III

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

PGrif2_0-1715593725501.png

Import dialog >> Yes

PGrif2_1-1715593785266.png

several Project extists dialog >> Yes and several Delete Resources >> OK

and see al the files in the CubeIDE

 

 

        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

  • Generate Code F4 OK
  • first Run Simulator F5 FAIL (why?)

 

        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

 

 

  • second Run Simulator F5  OK  (why?)
  • simulator starts and just a black screen is shown, as expected
  • Program and Run Target F7 FAIL due to 
    • 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
    • 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
      AllocationBase 0x0, BaseAddress 0x60EA0000, RegionSize 0x4C0000, State 0x10000
      D:\TouchGFX\4.23.2\env\MinGW\msys\1.0\bin\mkdir.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0

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!