cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Debug Process for TouchGFX and FDCAN Code Integration

Aashritha_Vuda
Associate II

Dear STM32 Community,

I am currently working with the STM32H747XIH6 board and encountering an issue where programming and running the target fails, even though the simulation in TouchGFX works perfectly.

Here are the details of my setup and the problems encountered:

  1. TouchGFX Integration:

    • I created a new TouchGFX application with a text area widget and wildcard entry. The code generation and simulation are successful, but when I attempt to program and run the target, I receive the error: "Program and Run Target Failed."
  2. STM32CubeIDE Integration:

    • I have integrated TouchGFX code into STM32CubeIDE, including a new variable and functions for incrementing numbers. This code runs correctly within STM32CubeIDE, but programming and running the target still fails.
    • Additionally, I have merged FDCAN code into main.c and configured pin and clock settings. Debugging both the CM7 and CM4 cores shows no errors, yet I am still encountering the same issue.Screenshot 2024-09-12 165944.png
1 ACCEPTED SOLUTION

Accepted Solutions

Hello @Aashritha_Vuda , and thank you for the sharing.

I reproduced the behavior and it doesn't have any relation with FDCAN. It seems you have the same issue described this thread.

The External Flash loader is not set in the debugger menu.

SofLit_0-1726653740297.png

You need to select the adequate FlashLoader for the External QSPI NOR Flash:

SofLit_1-1726653866771.png

SofLit_2-1726653972766.png

Hope it answers your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

6 REPLIES 6
SofLit
ST Employee

Let's be efficient to avoid the ping-pongs.

If you start a new TouchGFX project based on STM32H747XIH6 and before adding anything, you compile the generated project and program the MCU, do you face the same issue?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

When I run the empty project in TouchGFX and STM32CubeIDE, I do not encounter any errors.

 

 
 

Hello,

Is that possible to attach your project so I can have a look?

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello,
Below i have attached the project file .

Hello @Aashritha_Vuda , and thank you for the sharing.

I reproduced the behavior and it doesn't have any relation with FDCAN. It seems you have the same issue described this thread.

The External Flash loader is not set in the debugger menu.

SofLit_0-1726653740297.png

You need to select the adequate FlashLoader for the External QSPI NOR Flash:

SofLit_1-1726653866771.png

SofLit_2-1726653972766.png

Hope it answers your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Subject: Issues Receiving Data and Errors in TouchGFX Integration with FDCAN

Hello ST Community,

I am currently working on integrating FDCAN with TouchGFX in STM32CubeIDE. Despite following the suggested steps, I am not receiving data correctly, and I am encountering various errors within TouchGFX. Could you kindly assist me in resolving this issue?

Errors:

Program and 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 -j8
make -C C:/TouchGFXProjects/MyApplication_3/gcc/ --no-print-directory -f makefile_cm4 -j --jobserver-fds=gmake_semaphore_3520 all
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 -C C:/TouchGFXProjects/MyApplication_3/gcc/ --no-print-directory -f makefile_cm7 -j --jobserver-fds=gmake_semaphore_3520 all
Converting images
Reading CM7/TouchGFX/application.config
Reading CM7/TouchGFX/target.config
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/GeneratedFont.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/GeneratedFont.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/UnmappedDataFont.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/UnmappedDataFont.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/CachedFont.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/CachedFont.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/FontCache.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/FontCache.cpp
Generating ../CM7/TouchGFX/generated/fonts/src/ApplicationFontProvider.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/ApplicationFontProvider.hpp
Generating ../CM7/TouchGFX/generated/texts/include/texts/TextKeysAndLanguages.hpp
WARNING - Char 0x1 is used but does not exist in the font!
WARNING - A total of 28 Unicode characters did not exist in the font!
Generating CM7/TouchGFX/generated/fonts/src/Font_impact_20_4bpp_0.cpp
Generating CM7/TouchGFX/generated/fonts/src/Table_impact_20_4bpp.cpp
Generating CM7/TouchGFX/generated/fonts/src/Kerning_impact_20_4bpp.cpp
Generating ../CM7/TouchGFX/generated/fonts/src/VectorFontRendererBuffers.cpp
Compiling CM7/TouchGFX/gui/src/screen1_screen/Screen1View.cpp
Compiling CM7/TouchGFX/gui/src/screen1_screen/Screen1Presenter.cpp
Compiling CM7/TouchGFX/generated/fonts/src/UnmappedDataFont.cpp
Compiling CM7/TouchGFX/generated/fonts/src/Font_impact_20_4bpp_0.cpp
Compiling CM7/TouchGFX/generated/fonts/src/GeneratedFont.cpp
Compiling CM7/TouchGFX/generated/fonts/src/Table_impact_20_4bpp.cpp
Compiling CM7/TouchGFX/generated/fonts/src/FontCache.cpp
arm-none-eabi-g++: error: CM7/TouchGFX/generated/fonts/src/UnmappedDataFont.cpp: No such file or directory
arm-none-eabi-g++: fatal error: no input files
compilation terminated.
arm-none-eabi-g++: error: CM7/TouchGFX/generated/fonts/src/GeneratedFont.cpp: No such file or directory
arm-none-eabi-g++: fatal error: no input files
compilation terminated.
arm-none-eabi-g++: error: CM7/TouchGFX/generated/fonts/src/FontCache.cpp: No such file or directory
arm-none-eabi-g++: fatal error: no input files
compilation terminated.
arm-none-eabi-g++: error: CM7/TouchGFX/generated/fonts/src/Font_impact_20_4bpp_0.cpp: No such file or directory
arm-none-eabi-g++: fatal error: no input files
compilation terminated.
gcc/makefile_cm7:456: recipe for target 'CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/UnmappedDataFont.o' failed
make[3]: *** [CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/UnmappedDataFont.o] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc/makefile_cm7:456: recipe for target 'CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/GeneratedFont.o' failed
make[3]: *** [CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/GeneratedFont.o] Error 1
gcc/makefile_cm7:456: recipe for target 'CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/FontCache.o' failed
gcc/makefile_cm7:456: recipe for target 'CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/Font_impact_20_4bpp_0.o' failed
make[3]: *** [CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/FontCache.o] Error 1
make[3]: *** [CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/Font_impact_20_4bpp_0.o] Error 1
arm-none-eabi-g++: error: CM7/TouchGFX/generated/fonts/src/Table_impact_20_4bpp.cpp: No such file or directory
arm-none-eabi-g++: fatal error: no input files
compilation terminated.
gcc/makefile_cm7:456: recipe for target 'CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/Table_impact_20_4bpp.o' failed
make[3]: *** [CM7/TouchGFX/build/STM32H747I_DISCO/CM7/TouchGFX/generated/fonts/src/Table_impact_20_4bpp.o] Error 1
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/GeneratedFont.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/GeneratedFont.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/UnmappedDataFont.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/UnmappedDataFont.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/CachedFont.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/CachedFont.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/FontCache.hpp
Generating ../CM7/TouchGFX/generated/fonts/src/FontCache.cpp
Generating ../CM7/TouchGFX/generated/fonts/src/ApplicationFontProvider.cpp
Generating ../CM7/TouchGFX/generated/fonts/include/fonts/ApplicationFontProvider.hpp
Generating ../CM7/TouchGFX/generated/texts/include/texts/TextKeysAndLanguages.hpp
WARNING - Char 0x1 is used but does not exist in the font!
WARNING - A total of 28 Unicode characters did not exist in the font!
Generating CM7/TouchGFX/generated/fonts/src/Font_impact_20_4bpp_0.cpp
Generating CM7/TouchGFX/generated/fonts/src/Table_impact_20_4bpp.cpp
Generating CM7/TouchGFX/generated/fonts/src/Kerning_impact_20_4bpp.cpp
Generating ../CM7/TouchGFX/generated/fonts/src/VectorFontRendererBuffers.cpp
gcc/makefile_cm7:420: recipe for target 'generate_assets' failed
make[2]: *** [generate_assets] Error 2
makefile_cm7:52: recipe for target 'all' failed
make[1]: *** [all] Error 2
../../gcc/Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
Failed
Failed

 

thank you.