Skip to main content
Associate III
September 13, 2024
Solved

Issue with Debug Process for TouchGFX and FDCAN Code Integration

  • September 13, 2024
  • 1 reply
  • 1582 views

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
Best answer by mƎALLEm

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.

1 reply

mƎALLEm
Technical Moderator
September 13, 2024

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."
Associate III
September 16, 2024

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

 

 
 
mƎALLEm
Technical Moderator
September 16, 2024

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."