cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX can't ru simulator

BRobe.3
Associate III

Hello,

I use ToucheGFXDesigner 4.21.3 for the first time.

I have no problem to design the application for the 2 buttoms Run Simulator and Run Target are not Highlitghted. When, I point these buttoms, it's written : Can't run Simulator and Can't run target. Samething in the menu Code

I probably miss something but what?

If somebody coul help ?

Best Regards

Robert

11 REPLIES 11
JTP1
Lead

Hello. I think you have some error in screen 2 buttonWithLabel because it has yellow tab. Fix that first.

BRobe.3
Associate III

Hello,

Thanks for answer. You are right, I have not understood, there was a mistake.

Now, Simulator and run target buttoms work well

  1. Simulator works to
  2. But the run target fail. The reporting is the following. Any idea what the reason ?

Run Target

Generate

Done

Generate Assets

make -f simulator/gcc/Makefile assets -j8

Reading ./application.config

Reading ./target.config

Done

Post Generate

touchgfx update_project --project-file=simulator/msvs/Application.vcxproj

Done

Post Generate Target

touchgfx update_project

.cproject file: ../../STM32CubeIDE/CM7/.cproject

Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.project

Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.cproject

Done

Compile

make -f ../../gcc/Makefile clean && make -f ../../gcc/Makefile -j8

make -C C:/TouchGFXProjects/MyApplication_2/gcc/ -f makefile_cm4 clean

make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_2/gcc'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_2'

Cleaning: STM32H747I_DISCO

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_2'

make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_2/gcc'

make -C C:/TouchGFXProjects/MyApplication_2/gcc/ -f makefile_cm7 clean

make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_2/gcc'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_2'

Cleaning: STM32H747I_DISCO

rm: cannot remove `CM7/TouchGFX/build/bin/libjpeg-8.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/SDL2.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/SDL2_image.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/simulator.exe': Permission denied

make[2]: *** [_clean_] Error 1

gcc/makefile_cm7:462: recipe for target '_clean_' failed

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_2'

make[1]: *** [clean] Error 2

makefile_cm7:49: recipe for target 'clean' failed

make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_2/gcc'

../../gcc/Makefile:10: recipe for target 'clean' failed

make: *** [clean] Error 2

Failed

Failed

Best Regards Robert

JTP1
Lead

Hello. Are you running simulator same time when trying to update it target ? That prevents removing of those files.

BRobe.3
Associate III

Hello JTP,

I try with and without running simulator same time when trying to update it target. Same Issue

I also try the example : COVER TRANSITION. Same issue see below

The issue seems to be :

rm: cannot remove `CM7/TouchGFX/build/bin/libjpeg-8.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/SDL2.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/SDL2_image.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/simulator.exe': Permission denied

I download the touchGFX directly from ST site. Is it better to download from STM32Cube IDE ?

Best regards

Robert

------------------------------------------------------------------------------

COVER TRANSITION

Run Target

Generate

Done

Generate Assets

make -f simulator/gcc/Makefile assets -j8

Reading ./application.config

Reading ./target.config

Done

Post Generate

touchgfx update_project --project-file=simulator/msvs/Application.vcxproj

Done

Post Generate Target

touchgfx update_project

.cproject file: ../../STM32CubeIDE/CM7/.cproject

Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.project

Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.cproject

Done

Compile

make -f ../../gcc/Makefile clean && make -f ../../gcc/Makefile -j8

make -C C:/TouchGFXProjects/MyApplication_4/gcc/ -f makefile_cm4 clean

make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_4'

Cleaning: STM32H747I_DISCO

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'

make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make -C C:/TouchGFXProjects/MyApplication_4/gcc/ -f makefile_cm7 clean

make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_4'

Cleaning: STM32H747I_DISCO

rm: cannot remove `CM7/TouchGFX/build/bin/libjpeg-8.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/SDL2.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/SDL2_image.dll': Permission denied

rm: cannot remove `CM7/TouchGFX/build/bin/simulator.exe': Permission denied

make[2]: *** [_clean_] Error 1

gcc/makefile_cm7:462: recipe for target '_clean_' failed

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'

makefile_cm7:49: recipe for target 'clean' failed

make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make[1]: *** [clean] Error 2

../../gcc/Makefile:10: recipe for target 'clean' failed

make: *** [clean] Error 2

Failed

Failed

JTP1
Lead

Can you delete those files manually from windows file manager ? Do you have permissions for it in windows in that folder.

BRobe.3
Associate III

Hello JTP,

Thanks for your support. I have administrator permissions but I don't know where are these files.

Best regards

PS. My system is windows 11

JTP1
Lead

Hello. In your case files seems to be in

C:\TouchGFXProjects\MyApplication_2\CM7\TouchGFX\build\bin or MyApplication_4

folder. Those 4 files are generated when simulator build is make. This problem can be win11 related, I havent test TGFX in win11 and i'm not sure is it even officially supported OS.

BRobe.3
Associate III

Hello JTP,

Thanks for this new idea. I erase all these files.

A lot of progress but the Run Target fail. Reason : c:/TouchGFXProjects/MyApplication_4/gcc/include/flash_sections_int_ext.mk:4: recipe for target '_intflash_' failed

Best regards

Run Target

Generate

Done

Generate Assets

make -f simulator/gcc/Makefile assets -j8

Reading ./application.config

Reading ./target.config

Done

Post Generate

touchgfx update_project --project-file=simulator/msvs/Application.vcxproj

Done

Post Generate Target

touchgfx update_project

.cproject file: ../../STM32CubeIDE/CM7/.cproject

Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.project

Writing STM32CubeIDE project file: ../../STM32CubeIDE/CM7/.cproject

Done

Compile

make -f ../../gcc/Makefile clean && make -f ../../gcc/Makefile -j8

make -C C:/TouchGFXProjects/MyApplication_4/gcc/ -f makefile_cm4 clean

make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_4'

Cleaning: STM32H747I_DISCO

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'

make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make -C C:/TouchGFXProjects/MyApplication_4/gcc/ -f makefile_cm7 clean

make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_4'

Cleaning: STM32H747I_DISCO

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'

make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make: 'Makefile' is up to date.

Done

Flash

make -f ../../gcc/Makefile flash

make -C C:/TouchGFXProjects/MyApplication_4/gcc/ -f makefile_cm4 flash

make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_4'

make[3]: Entering directory 'c:/TouchGFXProjects/MyApplication_4'

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_cortex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_crc.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_crc_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dma2d.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_dsi.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_exti.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_flash_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_gpio.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_hsem.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_i2c_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_ltdc.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_ltdc_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_mdma.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_pwr_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_qspi.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_rcc_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_sdram.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_hal_tim_ex.c

Compiling Drivers/STM32H7xx_HAL_Driver/Src/stm32h7xx_ll_fmc.c

Compiling CM4/Core/Src/main.c

Compiling CM4/Core/Src/stm32h7xx_it.c

Compiling CM4/Core/Src/stm32h7xx_hal_msp.c

Compiling STM32CubeIDE/CM4/Application/User/Core/syscalls.c

Compiling STM32CubeIDE/CM4/Application/User/Core/sysmem.c

Compiling Common/Src/system_stm32h7xx_dualcore_boot_cm4_cm7.c

Compiling ASM STM32CubeIDE/CM4/Application/User/Startup/startup_stm32h747xihx.s

Linking CM4/TouchGFX/build/bin/target.elf

Producing additional output formats...

target.hex - Combined internal+external hex

intflash.elf - Internal flash, elf debug

intflash.hex - Internal flash, hex

make[3]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'

make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_4'

-------------------------------------------------------------------

STM32CubeProgrammer v2.3.0

-------------------------------------------------------------------

ST-LINK SN : 003E00463431511237393330

ST-LINK FW : V3J10M3

Voltage : 3.27V

SWD freq : 24000 KHz

Connect mode: Normal

Reset mode : Software reset

Device ID : 0x450

Device name : STM32H7xx

Flash size : 2 MBytes

Device type : MCU

Device CPU : Cortex-M7/M4

Memory Programming ...

Opening and parsing file: intflash.hex

File : intflash.hex

Size : 3444 Bytes

Address : 0x08100000

Erasing memory corresponding to segment 0:

Erasing internal memory sector 8

Error: failed to erase memory

Error: failed to erase memory

Hard reset is performed

c:/TouchGFXProjects/MyApplication_4/gcc/include/flash_sections_int_ext.mk:4: recipe for target '_intflash_' failed

make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'

make[2]: *** [_intflash_] Error 1

makefile_cm4:42: recipe for target 'flash' failed

make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_4/gcc'

make[1]: *** [flash] Error 2

../../gcc/Makefile:10: recipe for target 'flash' failed

make: *** [flash] Error 2

Failed

Failed

///////////////////////////////////////////////////////////////////////////////////////////

BRobe.3
Associate III

Hello JTP,

I did a second time, it works well.

Many tanks. Now, Why these 4 files are not working ?

Best regards