Issue with Debug Process for TouchGFX and FDCAN Code Integration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-13 2:50 AM - last edited on ‎2024-09-19 3:04 AM by mƎALLEm
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:
-
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."
-
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.
Solved! Go to Solution.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-18 3:07 AM - edited ‎2024-09-18 3:08 AM
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.
You need to select the adequate FlashLoader for the External QSPI NOR Flash:
Hope it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-13 2:55 AM - edited ‎2024-09-13 3:00 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-15 10:26 PM
When I run the empty project in TouchGFX and STM32CubeIDE, I do not encounter any errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-16 1:14 AM
Hello,
Is that possible to attach your project so I can have a look?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-17 9:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-18 3:07 AM - edited ‎2024-09-18 3:08 AM
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.
You need to select the adequate FlashLoader for the External QSPI NOR Flash:
Hope it answers your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-09-19 11:23 PM
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.
