cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G-DISCO : TouchGFX Run Target Fail

Karan 123
Senior

Hi

I am using TouchGFX  4.12.3 with STM32F746G-DISCO Board.

I have already installed STLink and STCubeProgrammer.

I am able to GUI run on simulator but not on target .

Please check below logs.

--

Thanks

Gurpreet Singh

3 REPLIES 3
Karan 123
Senior
Run Target
 
  Generate
 
    Done
 
  Generate Assets
 
    make -f simulator/gcc/Makefile assets -j10
 
    Converting images
 
    Done
 
  Post Generate
 
    touchgfx update_project --project-file=../EWARM/MyApplication_3.ewp --gui-group-name=Application/User/TouchGFX/gui --generated-group-name=Application/User/TouchGFX/generated && touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
 
    Done
 
  Compile
 
    make -f ../gcc/Makefile -j8
 
    Converting images
 
    Compiling TouchGFX/gui/src/screen1_screen/Screen1Presenter.cpp
 
    Compiling TouchGFX/generated/fonts/src/Font_verdana_20_4bpp_0.cpp
 
    Compiling TouchGFX/gui/src/common/FrontendApplication.cpp
 
    Compiling TouchGFX/gui/src/screen1_screen/Screen1View.cpp
 
    Compiling TouchGFX/generated/gui_generated/src/screen1_screen/Screen1ViewBase.cpp
 
    Compiling TouchGFX/generated/fonts/src/Font_verdana_40_4bpp_0.cpp
 
    Compiling TouchGFX/gui/src/model/Model.cpp
 
    Compiling TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.cpp
 
    Compiling TouchGFX/generated/fonts/src/GeneratedFont.cpp
 
    Compiling TouchGFX/generated/fonts/src/Kerning_verdana_40_4bpp.cpp
 
    Compiling TouchGFX/generated/fonts/src/Table_verdana_10_4bpp.cpp
 
    Compiling TouchGFX/generated/fonts/src/Kerning_verdana_20_4bpp.cpp
 
    Compiling TouchGFX/generated/fonts/src/FontCache.cpp
 
    Compiling TouchGFX/generated/fonts/src/Kerning_verdana_10_4bpp.cpp
 
    Compiling TouchGFX/generated/fonts/src/Font_verdana_10_4bpp_0.cpp
 
    Compiling TouchGFX/generated/fonts/src/CachedFont.cpp
 
    Compiling TouchGFX/generated/fonts/src/Table_verdana_40_4bpp.cpp
 
    Compiling TouchGFX/generated/fonts/src/Table_verdana_20_4bpp.cpp
 
    Compiling TouchGFX/generated/fonts/src/ApplicationFontProvider.cpp
 
    Compiling TouchGFX/generated/images/src/__designer/Blue_Buttons_Round_Edge_small.cpp
 
    Compiling TouchGFX/generated/images/src/__designer/Blue_Buttons_Round_Edge_small_pressed.cpp
 
    Compiling TouchGFX/generated/images/src/BitmapDatabase.cpp
 
    Compiling TouchGFX/generated/texts/src/TypedTextDatabase.cpp
 
    Compiling TouchGFX/generated/texts/src/Texts.cpp
 
    Compiling Middlewares/ST/TouchGFX/touchgfx/os/OSWrappers.cpp
 
    Compiling TouchGFX/target/STM32F7Instrumentation.cpp
 
    Compiling Core/Src/main.cpp
 
    Compiling TouchGFX/target/STM32F7TouchController.cpp
 
    Compiling TouchGFX/target/STM32F7DMA.cpp
 
    Compiling TouchGFX/target/STM32F7HAL.cpp
 
    Compiling TouchGFX/target/GPIO.cpp
 
    Compiling TouchGFX/target/HW_Init.cpp
 
    Compiling TouchGFX/target/BoardConfiguration.cpp
 
    In file included from Core/Src/main.cpp:53:0:
 
    Core/Src/main.cpp: In function 'int main()':
 
    Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h:470:54: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
 
     { #name, (thread), (priority), (instances), (stacksz)}
 
                               ^
 
    Core/Src/main.cpp:176:5: note: in expansion of macro 'osThreadDef'
 
       osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096);
 
       ^~~~~~~~~~~
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/croutine.c
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/list.c
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/tasks.c
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/queue.c
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/timers.c
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_2.c
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.c
 
    Compiling Drivers/BSP/STM32746G-Discovery/stm32746g_discovery.c
 
    Compiling Drivers/BSP/Components/ft5336/ft5336.c
 
    Compiling Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_ts.c
 
    Compiling Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_qspi.c
 
    Compiling Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_sdram.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma_ex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_nor.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr_ex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sdram.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_sd.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_qspi.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc_ex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rtc_ex.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_uart.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.c
 
    Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_sdmmc.c
 
    Compiling Core/Src/system_stm32f7xx.c
 
    Compiling Core/Src/freertos.c
 
    Compiling Core/Src/stm32f7xx_hal_msp.c
 
    Compiling Core/Src/stm32f7xx_hal_timebase_tim.c
 
    Compiling Core/Src/stm32f7xx_it.c
 
    Compiling ASM Drivers/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s
 
    Compiling Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c
 
    Linking 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
 
     extflash.bin - External flash, binary
 
    Done
 
  Flash
 
    make -f ../gcc/Makefile -j8 flash
 
    Converting images
 
    Linking 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
 
     extflash.bin - External flash, binary
 
    /usr/bin/sh: C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ST-LINK_CLI.exe: No such file or directory
 
    gcc/Makefile:318: recipe for target '_extflash_' failed
 
    make[1]: *** [_extflash_] Error 127
 
    ../gcc/Makefile:50: recipe for target 'flash' failed
 
    make: *** [flash] Error 2
 
    Failed

HP
Senior III

Wouldn't it be a good idea to update the firmware on your ST-link first? press the big blue 'firmware upgrade' button and see if that works.

the examples in TouchGFX designer should work out of the box. do they?

Did you find the solution? if yes please post it. thanks