cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F769I-DISCO How to get started using TouchGFX AND cube

shorai
Associate III

A) When I try to start almost any project other than a blank screen on touchGFX it simply says that that demo is unavailable for the 769. Can you please remove the projects that won't compile from the list.

B) On the newest version 4.12.3 I could not get ANY (even a blank project ) started.

C) I went back to 4.10.0 and could at least get TouchGFX to build compile and download a project. This works from TouchGFX.

When I went to compile from Cube I get the following.

Where and how do I fix the missing files?

How do I get the to remain in my project as a regenerate from TouchGFX will probably remove them.

13:58:29 **** Build of configuration Debug for project SRMInstrument769I ****

make -j4 all 

arm-none-eabi-g++ "../TouchGFX/target/BoardConfiguration.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F769xx -DDEBUG -c -ITouchGFX/target -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32F7xx_HAL_Driver/Inc/Legacy -ITouchGFX/generated/gui_generated/include -IDrivers/CMSIS/Device/ST/STM32F7xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32F7xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -ITouchGFX/generated/texts/include -ITouchGFX/gui/include -IMiddlewares/ST/TouchGFX/touchgfx/framework/include -ITouchGFX/generated/fonts/include -ITouchGFX/generated/images/include -ICore/Inc -IDrivers/BSP/Components/otm8009a -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/target/BoardConfiguration.d" -MT"TouchGFX/target/BoardConfiguration.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/target/BoardConfiguration.o"

arm-none-eabi-g++ "../TouchGFX/target/GPIO.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F769xx -DDEBUG -c -ITouchGFX/target -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32F7xx_HAL_Driver/Inc/Legacy -ITouchGFX/generated/gui_generated/include -IDrivers/CMSIS/Device/ST/STM32F7xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32F7xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -ITouchGFX/generated/texts/include -ITouchGFX/gui/include -IMiddlewares/ST/TouchGFX/touchgfx/framework/include -ITouchGFX/generated/fonts/include -ITouchGFX/generated/images/include -ICore/Inc -IDrivers/BSP/Components/otm8009a -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/target/GPIO.d" -MT"TouchGFX/target/GPIO.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/target/GPIO.o"

arm-none-eabi-g++ "../TouchGFX/target/HW_Init.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F769xx -DDEBUG -c -ITouchGFX/target -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32F7xx_HAL_Driver/Inc/Legacy -ITouchGFX/generated/gui_generated/include -IDrivers/CMSIS/Device/ST/STM32F7xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32F7xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -ITouchGFX/generated/texts/include -ITouchGFX/gui/include -IMiddlewares/ST/TouchGFX/touchgfx/framework/include -ITouchGFX/generated/fonts/include -ITouchGFX/generated/images/include -ICore/Inc -IDrivers/BSP/Components/otm8009a -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/target/HW_Init.d" -MT"TouchGFX/target/HW_Init.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/target/HW_Init.o"

arm-none-eabi-g++ "../TouchGFX/target/OTM8009TouchController.cpp" -mcpu=cortex-m7 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F769xx -DDEBUG -c -ITouchGFX/target -IMiddlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -IDrivers/STM32F7xx_HAL_Driver/Inc/Legacy -ITouchGFX/generated/gui_generated/include -IDrivers/CMSIS/Device/ST/STM32F7xx/Include -IDrivers/CMSIS/Include -IDrivers/STM32F7xx_HAL_Driver/Inc -IMiddlewares/Third_Party/FreeRTOS/Source/include -IMiddlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM7/r0p1 -ITouchGFX/generated/texts/include -ITouchGFX/gui/include -IMiddlewares/ST/TouchGFX/touchgfx/framework/include -ITouchGFX/generated/fonts/include -ITouchGFX/generated/images/include -ICore/Inc -IDrivers/BSP/Components/otm8009a -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"TouchGFX/target/OTM8009TouchController.d" -MT"TouchGFX/target/OTM8009TouchController.o" --specs=nano.specs -mfpu=fpv5-d16 -mfloat-abi=hard -mthumb -o "TouchGFX/target/OTM8009TouchController.o"

../TouchGFX/target/GPIO.cpp:2:10: fatal error: touchgfx/hal/GPIO.hpp: No such file or directory

 #include <touchgfx/hal/GPIO.hpp>

     ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

../TouchGFX/target/OTM8009TouchController.cpp:2:10: fatal error: OTM8009TouchController.hpp: No such file or directory

 #include <OTM8009TouchController.hpp>

     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

../TouchGFX/target/BoardConfiguration.cpp:1:10: fatal error: common/TouchGFXInit.hpp: No such file or directory

 #include <common/TouchGFXInit.hpp>

     ^~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

In file included from ../TouchGFX/target/HW_Init.cpp:49:0:

../TouchGFX/target/HW_Init.hpp:53:10: fatal error: main.h: No such file or directory

 #include "main.h"

     ^~~~~~~~

compilation terminated.

make: *** [TouchGFX/target/subdir.mk:36: TouchGFX/target/BoardConfiguration.o] Error 1

make: *** Waiting for unfinished jobs....

make: *** [TouchGFX/target/subdir.mk:38: TouchGFX/target/GPIO.o] Error 1

make: *** [TouchGFX/target/subdir.mk:42: TouchGFX/target/OTM8009TouchController.o] Error 1

make: *** [TouchGFX/target/subdir.mk:40: TouchGFX/target/HW_Init.o] Error 1

"make -j4 all" terminated with exit code 2. Build might be incomplete.

13:58:36 Build Failed. 9 errors, 0 warnings. (took 6s.585ms)

2 REPLIES 2
shorai
Associate III

Oh, BTW

When I recompile in TouchGFX after adding few timers I get the following, even though I have not altered ot used EXTI features

This is VERY annoying since these errorrs should be picked up and corrected in regression testing.

Compiling TouchGFX/gui/src/screen1_screen/Screen1Presenter.cpp

Compiling TouchGFX/gui/src/screen1_screen/Screen1View.cpp

Compiling TouchGFX/gui/src/onepulsescreen_screen/OnePulseScreenView.cpp

Compiling TouchGFX/gui/src/onepulsescreen_screen/OnePulseScreenPresenter.cpp

Compiling TouchGFX/generated/gui_generated/src/common/FrontendApplicationBase.cpp

Compiling TouchGFX/generated/fonts/src/Kerning_verdana_10_4bpp.cpp

Compiling TouchGFX/generated/gui_generated/src/screen1_screen/Screen1ViewBase.cpp

Compiling TouchGFX/generated/gui_generated/src/onepulsescreen_screen/OnePulseScreenViewBase.cpp

Compiling TouchGFX/generated/fonts/src/Font_verdana_40_4bpp.cpp

Compiling TouchGFX/generated/fonts/src/Font_verdana_20_4bpp.cpp

Compiling TouchGFX/generated/fonts/src/FontGetters.cpp

Compiling TouchGFX/generated/fonts/src/Kerning_verdana_40_4bpp.cpp

Compiling TouchGFX/generated/fonts/src/Kerning_verdana_20_4bpp.cpp

Compiling TouchGFX/generated/fonts/src/Table_verdana_10_4bpp.cpp

Compiling TouchGFX/generated/fonts/src/Font_verdana_10_4bpp.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/texts/src/LanguageGb.cpp

Compiling TouchGFX/generated/texts/src/TypedTextDatabase.cpp

Compiling TouchGFX/generated/texts/src/Texts.cpp

Compiling Middlewares/ST/TouchGFX/touchgfx//os/OSWrappers.cpp

Compiling Core/Src/main.cpp

Compiling TouchGFX/target/STM32F7Instrumentation.cpp

Compiling TouchGFX/target/STM32F7DMA.cpp

Compiling TouchGFX/target/STM32F7HAL_DSI.cpp

Compiling TouchGFX/target/OTM8009TouchController.cpp

Compiling TouchGFX/target/GPIO.cpp

In file included from Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:46:0,

         from Core/Inc/main.h:61,

         from Core/Src/main.cpp:52:

Core/Inc/stm32f7xx_hal_conf.h:235:34: fatal error: stm32f7xx_hal_exti.h: No such file or directory

  #include "stm32f7xx_hal_exti.h"

                 ^

compilation terminated.

In file included from Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:46:0,

         from TouchGFX/target/STM32F7Instrumentation.cpp:2:

Core/Inc/stm32f7xx_hal_conf.h:235:34: fatal error: stm32f7xx_hal_exti.h: No such file or directory

  #include "stm32f7xx_hal_exti.h"

                 ^

compilation terminated.

Compiling TouchGFX/target/HW_Init.cpp

Compiling TouchGFX/target/BoardConfiguration.cpp

gcc/Makefile:359: recipe for target 'TouchGFX/build/ST/STM32F769I-DISCO/Core/Src/main.o' failed

make[2]: *** [TouchGFX/build/ST/STM32F769I-DISCO/Core/Src/main.o] Error 1

make[2]: *** Waiting for unfinished jobs....

gcc/Makefile:359: recipe for target 'TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/STM32F7Instrumentation.o' failed

make[2]: *** [TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/STM32F7Instrumentation.o] Error 1

In file included from Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:46:0,

         from Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery.h:47,

         from Drivers/BSP/STM32F769I-Discovery/stm32f769i_discovery_ts.h:46,

         from TouchGFX/target/OTM8009TouchController.cpp:5:

Core/Inc/stm32f7xx_hal_conf.h:235:34: fatal error: stm32f7xx_hal_exti.h: No such file or directory

  #include "stm32f7xx_hal_exti.h"

                 ^

compilation terminated.

gcc/Makefile:359: recipe for target 'TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/OTM8009TouchController.o' failed

make[2]: *** [TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/OTM8009TouchController.o] Error 1

In file included from Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:46:0,

         from TouchGFX/target/STM32F7DMA.cpp:7:

Core/Inc/stm32f7xx_hal_conf.h:235:34: fatal error: stm32f7xx_hal_exti.h: No such file or directory

  #include "stm32f7xx_hal_exti.h"

                 ^

compilation terminated.

gcc/Makefile:359: recipe for target 'TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/STM32F7DMA.o' failed

make[2]: *** [TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/STM32F7DMA.o] Error 1

In file included from Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:46:0,

         from Core/Inc/main.h:61,

         from TouchGFX/target/HW_Init.hpp:53,

         from TouchGFX/target/HW_Init.cpp:49:

Core/Inc/stm32f7xx_hal_conf.h:235:34: fatal error: stm32f7xx_hal_exti.h: No such file or directory

  #include "stm32f7xx_hal_exti.h"

                 ^

compilation terminated.

gcc/Makefile:359: recipe for target 'TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/HW_Init.o' failed

make[2]: *** [TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/HW_Init.o] Error 1

In file included from Drivers/STM32F7xx_HAL_Driver/Inc/stm32f7xx_hal.h:46:0,

         from Core/Inc/main.h:61,

         from TouchGFX/target/STM32F7Instrumentation.hpp:44,

         from TouchGFX/target/BoardConfiguration.cpp:8:

Core/Inc/stm32f7xx_hal_conf.h:235:34: fatal error: stm32f7xx_hal_exti.h: No such file or directory

  #include "stm32f7xx_hal_exti.h"

                 ^

compilation terminated.

gcc/Makefile:359: recipe for target 'TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/BoardConfiguration.o' failed

make[2]: *** [TouchGFX/build/ST/STM32F769I-DISCO/TouchGFX/target/BoardConfiguration.o] Error 1

gcc/Makefile:326: recipe for target 'generate_assets' failed

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

../gcc/Makefile:45: recipe for target 'all' failed

make: *** [all] Error 2

shorai
Associate III

I received an update that dis not warn me of hard incompatibilities.

Now the recommendation is not simply to have 3 or more copies of the IDE but to install other old packages (or so it seems)

This is not very user friendly.

A) Please warn of incompatibilities

B) Try to handle them seamlessly

C) Provide auto upgrade tools to manage the discrepancies

D) What am I supposed to do, I have 5.5.0 in my cube, ( At least that is what you tell me)\

E) Where do I get 5.5.0 stand alone? Why cant this be done from the integrated version?

F) What must I do to upgrade ALL my projects? How long will that take?

Many developers do not have excess time to go fiddling round with inconsistencies like this.

The project you are trying to open contains graphic firmware configuration.

Starting from STM32CubeMX 5.5.0 (integrated in STM32CubeIDE 1.2.0) the graphic firmware configuration logic has changed.

In STM32CubeIDE this is a hard compatibility break.

You have two options:

1. Continue your development using STM32CubeIDE 1.1.0 or an older version

2. In order to use STM32CubeIDE 1.2.0 or a later version, the stand-alone STM32CubeMX 5.5.0 or a later version must be used to handle the migration.

Please consult the graphic firmware migration application note: www.st.com/stm32cubemx_gfx_mw_migration.