2025-11-13 9:43 AM
The project is a TouchGFX demo running on the STM32H735G-DK.
Building works (vscode+plugin+cmake+clang). Flashing works with STM32CubeProgrammer.
Debug/flashing doesn't work with STM32Cube plugin, it does work with cortex-debug plugin with a custom launch.json file. Since that is incompatible with the plugin it will require using VSCode profiles and switch between them constantly.
If I try to debug using the plugin I get this:
STMicroelectronics ST-LINK GDB server. Version 7.11.0
Copyright (c) 2025, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled
InitWhile : Enabled
Waiting for debugger connection...
GNU gdb (GNU Tools for STM32 13.3.rel1.20250523-0900) 14.2.90.20240526-git
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
add-symbol-file "C:/TouchGFXProjects/MyApplication_24/build/Debug/STM32H735G-DK.elf"
add symbol table from file "C:/TouchGFXProjects/MyApplication_24/build/Debug/STM32H735G-DK.elf"
(y or n) [answered Y; input not from terminal]
Reading symbols from C:/TouchGFXProjects/MyApplication_24/build/Debug/STM32H735G-DK.elf...
Debugger connected
Waiting for debugger connection...
Reset_Handler () at C:/TouchGFXProjects/MyApplication_24/startup_stm32h735xx.s:61
61 ldr sp, =_estack /* set stack pointer */
connected to remote target localhost:61234
Note: automatically using hardware breakpoints for read-only addresses.
load "C:/TouchGFXProjects/MyApplication_24/build/Debug/STM32H735G-DK.elf"
Loading section TouchGFX_ScratchbufferA, size 0x100 lma 0x24000a20
Loading section TouchGFX_ScratchbufferB, size 0x100 lma 0x24000b20
Loading section ._user_heap_stack, size 0x2004 lma 0x24018794
Loading section ExtFlashSection, size 0x68230 lma 0x90000000
Load failed
cube is killed by signal SIGTERM
I suspect this is because it doesn't load the flash loader for external flash. I don't know how to add this.
More details on the project are found here: https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/help-with-building-flashing-stm32h735-demo-project-with-clang/td-p/853141