Issue Description
I am experiencing a debugging issue with a project generated using TouchGFX Designer 4.24.2 for STM32H7B3I-DK, running on STM32CubeIDE 1.17.0. When I attempt to start debugging, I get the following error:
Failed to execute MI command:
load C:\TouchGFXProjects\Test01\STM32CubeIDE\Debug\STM32CubeIDE.elf
Error message from debugger back end: Load failed
Tests Performed
- Project generated with TouchGFX 4.24: If I generate the project from TouchGFX and try to debug, I get the error mentioned above.
The firmware loads correctly when flashed (.hex) manually via STM32CubeProgrammer, but the graphics appear corrupted. - Empty STM32CubeIDE Project (No TouchGFX): If I create a new empty project for the STM32H7B3I-DK in STM32CubeIDE 1.17.0, the debugger works without any issues.
Flashing and debugging function properly.
Observations
- The issue seems specific to projects generated using TouchGFX 4.24.2
- There might be a problem with memory configuration, linker scripts, or how TouchGFX handles the flash.
Questions
- Has anyone experienced a similar issue with TouchGFX projects?
- Are there specific settings required in STM32CubeIDE to properly debug a TouchGFX project on STM32H7B3I-DK?
- Could this be related to flash memory configuration in linker scripts?
Any help or suggestions would be greatly appreciated.