cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGfx 4.22.1 generated code misses LCD driver

hbZhao
Associate III

hi,

I created a simple project with TouchGfx 4.22.1 for STM32F746G-DISCO and added a label to check whether the LCD worked.

hbZhao_0-1696799919163.png

However, the LCD did not display anything after downloading the code. According to the log of compiling the code as below, the file of 'stm32746g_discovery_lcd.c' in Drivers/BSP/STM32746G-Discovery/ was not compiled or included in the project. And the lcd driver is designed for RK043FN48H LCD while it should be KUNJIAN HT043C,

May I know if there are any sample codes which can be run on the STM32F746G-DISCO version C01? Thanks.

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

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/.cproject
Writing STM32CubeIDE project file: ../STM32CubeIDE/.project
Writing STM32CubeIDE project file: ../STM32CubeIDE/.cproject
Done
Compile
make -f ../gcc/Makefile -j8
Reading TouchGFX/application.config
Reading TouchGFX/target.config
Compiling TouchGFX/gui/src/screen1_screen/Screen1Presenter.cpp
Compiling TouchGFX/gui/src/screen1_screen/Screen1View.cpp
Compiling TouchGFX/gui/src/model/Model.cpp
Compiling TouchGFX/gui/src/common/FrontendApplication.cpp
Compiling TouchGFX/generated/gui_generated/src/screen1_screen/Screen1ViewBase.cpp
Compiling TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_40_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Font_verdana_20_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/GeneratedFont.cpp
Compiling TouchGFX/generated/fonts/src/UnmappedDataFont.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_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/Font_verdana_10_4bpp_0.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_40_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/CachedFont.cpp
Compiling TouchGFX/generated/fonts/src/Table_verdana_20_4bpp.cpp
Compiling TouchGFX/generated/fonts/src/ApplicationFontProvider.cpp
Compiling TouchGFX/generated/images/src/SVGDatabase.cpp
Compiling TouchGFX/generated/images/src/BitmapDatabase.cpp
Compiling TouchGFX/generated/texts/src/LanguageGb.cpp
Compiling TouchGFX/generated/texts/src/TypedTextDatabase.cpp
Compiling TouchGFX/generated/texts/src/Texts.cpp
Compiling TouchGFX/target/generated/TouchGFXGeneratedHAL.cpp
Compiling TouchGFX/target/generated/STM32DMA.cpp
Compiling TouchGFX/target/generated/OSWrappers.cpp
Compiling TouchGFX/target/generated/TouchGFXConfiguration.cpp
Compiling TouchGFX/target/generated/SoftwareMJPEGDecoder.cpp
Compiling TouchGFX/target/TouchGFXHAL.cpp
Compiling TouchGFX/target/TouchGFXGPIO.cpp
Compiling TouchGFX/target/STM32TouchController.cpp
Compiling TouchGFX/target/CortexMMCUInstrumentation.cpp
Compiling Core/Src/system_stm32f7xx.c
Compiling Core/Src/main.c
Compiling Core/Src/stm32f7xx_hal_timebase_tim.c
Compiling Core/Src/stm32f7xx_hal_msp.c
Compiling Core/Src/freertos.c
Compiling Core/Src/stm32f7xx_it.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc_ex.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc_ex.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dsi.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_ltdc.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_flash.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_rcc.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_qspi.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_pwr.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim_ex.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_cortex.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_ll_fmc.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_flash_ex.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_exti.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_gpio.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_dma2d.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_tim.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_i2c_ex.c
Compiling Drivers/STM32F7xx_HAL_Driver/Src/stm32f7xx_hal_crc_ex.c
Compiling TouchGFX/App/app_touchgfx.c
Compiling Middlewares/Third_Party/FreeRTOS/Source/croutine.c
Compiling Middlewares/Third_Party/FreeRTOS/Source/list.c
Compiling Middlewares/Third_Party/FreeRTOS/Source/queue.c
Compiling Middlewares/Third_Party/FreeRTOS/Source/tasks.c
Compiling Middlewares/Third_Party/FreeRTOS/Source/timers.c
Compiling Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c
Compiling gcc/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c
Compiling gcc/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1/port.c
Compiling Drivers/BSP/STM32746G-Discovery/stm32746g_discovery_qspi.c
Compiling Drivers/BSP/Components/ft5336/ft5336.c
Compiling Middlewares/Third_Party/LibJPEG/source/jaricom.c
Compiling Middlewares/Third_Party/LibJPEG/source/jcomapi.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdapimin.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdapistd.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdarith.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdatasrc.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdcoefct.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdcolor.c
Compiling Middlewares/Third_Party/LibJPEG/source/jddctmgr.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdhuff.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdinput.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdmainct.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdmarker.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdmaster.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdmerge.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdpostct.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdsample.c
Compiling Middlewares/Third_Party/LibJPEG/source/jdtrans.c
Compiling Middlewares/Third_Party/LibJPEG/source/jerror.c
Compiling Middlewares/Third_Party/LibJPEG/source/jidctflt.c
Compiling Middlewares/Third_Party/LibJPEG/source/jidctfst.c
Compiling Middlewares/Third_Party/LibJPEG/source/jidctint.c
Compiling Middlewares/Third_Party/LibJPEG/source/jmemmgr.c
Compiling Middlewares/Third_Party/LibJPEG/source/jmemnobs.c
Compiling Middlewares/Third_Party/LibJPEG/source/jquant1.c
Compiling Middlewares/Third_Party/LibJPEG/source/jquant2.c
Compiling Middlewares/Third_Party/LibJPEG/source/jutils.c
Compiling LIBJPEG/App/libjpeg.c
Compiling ASM gcc/startup_stm32f746nghx.s
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
Done
Flash
make -f ../gcc/Makefile flash -j8
Reading TouchGFX/application.config
Reading TouchGFX/target.config
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
-------------------------------------------------------------------
STM32CubeProgrammer v2.13.0
-------------------------------------------------------------------

ST-LINK SN : 0668FF565588494867115321
ST-LINK FW : V2J42M27
Board : 32F746GDISCOVERY
Voltage : 3.22V
SWD freq : 4000 KHz
Connect mode: Normal
Reset mode : Software reset
Device ID : 0x449
Revision ID : Rev Z
Device name : STM32F74x/STM32F75x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x90
Debug in Low Power mode enabled



Memory Programming ...
Opening and parsing file: target.hex
File : target.hex
Size : 256.81 KB
Address : 0x08000000


Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Erasing memory corresponding to segment 1:
Erasing internal memory sectors [0 4]
Erasing memory corresponding to segment 2:
Erasing external memory sector 0
Download in Progress:
北北北北北北北北北北北北北北北北北北北北北北北北北 0%
圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹 100%

File download complete
Time elapsed during download operation: 00:00:04.471

Hard reset is performed
Done
Done

1 ACCEPTED SOLUTION

Accepted Solutions

Hell @hbZhao ,

In theory, boards are shipped with an application that you can find in the firmware packs.
In your case that would be something like: C:\Users\YOUR_USER_NAME\STM32Cube\Repository\STM32Cube_FW_F7_V1.17.1\Projects\STM32746G-Discovery

Let me know if you find it.

Osman SOYKURT
ST Software Developer | TouchGFX

View solution in original post

4 REPLIES 4
Osman SOYKURT
ST Employee

Hello @hbZhao ,

Thank you for reporting it, we'll check what we can do for it.

Osman SOYKURT
ST Software Developer | TouchGFX
hbZhao
Associate III

Hello, @Osman SOYKURT 

Thanks for your kind reply.

Since most of boards in the store should be the version C01, which has been upgraded many components from version B, it would be the best if the TouchGFX can generate codes directly with the board version C01.

As the demo application worked well when the board was arrived, may I know where I can download the codes of demo application?

Appreciate your help. Best Regards.

Hell @hbZhao ,

In theory, boards are shipped with an application that you can find in the firmware packs.
In your case that would be something like: C:\Users\YOUR_USER_NAME\STM32Cube\Repository\STM32Cube_FW_F7_V1.17.1\Projects\STM32746G-Discovery

Let me know if you find it.

Osman SOYKURT
ST Software Developer | TouchGFX

Did you find the missing LCD drivers for the board version C01 ?