Question
Debug ToughGFX generated code
I generated code using ToughGFX 4.13.0 for the STM32F769I_DISCO board. I was able to run target in ToughGFX and import the code into the CubeIDE. There were missing files that needed to be deleted from the project to get it to build.
But after that, I can't load the debugger. I get the following in the console:
STMicroelectronics ST-LINK GDB server. Version 5.3.2
Copyright (c) 2019, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
LogFile Name : C:\TouchGFXProjects\tgfx769_slider_2\STM32CubeIDE\Debug\st-link_gdbserver_log.txt
Logging Level : 31
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Enabled
SWD Debug : Enabled
InitWhile : Enabled
Target connection mode: Under reset
Hardware watchpoint supported by the target
COM frequency = 4000 kHz
ST-LINK Firmware version : V2J34M25
Device ID: 0x451
PC: 0x8011654
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.23 V
ST-LINK device status: HALT_MODE
ST-LINK device initialization OK
Waiting for debugger connection...
Waiting for connection on port 61234...
Accepted connection on port 61234...
Debugger connected
Enter STM32_AppReset() function
NVIC_DFSR_REG = 0x00000009
NVIC_CFGFSR_REG = 0x00000000
XPSR = 0x01000000
Debugger connection lost.
Shutting down...And the following in the error dialog:
Error in final launch sequence:
Failed to execute MI command:
load C:\\TouchGFXProjects\\tgfx769_slider_2\\STM32CubeIDE\\Debug\\STM32F769I_DISCO.elf
Error message from debugger back end:
Load failed
Failed to execute MI command:
load C:\\TouchGFXProjects\\tgfx769_slider_2\\STM32CubeIDE\\Debug\\STM32F769I_DISCO.elf
Error message from debugger back end:
Load failed
Failed to execute MI command:
load C:\\TouchGFXProjects\\tgfx769_slider_2\\STM32CubeIDE\\Debug\\STM32F769I_DISCO.elf
Error message from debugger back end:
Load failed
Load failed