STM32Cube IDE "Run" works, "Debug" doesn´t
Hello everyone,
I have a problem with my STM32f746g_Disco. When I started a project, I could hit the "Debug" button and everything worked fine.
Now it uploads everything and the Screen just shows a static noise (like on an old TV). When I use the "Run" button next to the "Debug" button, everything works as expected. So there is no code Error.
But now I cannot use the debug function, wich is essential for me.
I could not find any differences between the "debug Configurations" and "run configurations". Is there another place I could look for differences?
When Using "Debug" the console is giving me the following lines:
STMicroelectronics ST-LINK GDB server. Version 7.3.0
Copyright (c) 2023, 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...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.13.0
-------------------------------------------------------------------
Log output file: C:\Users\Model\AppData\Local\Temp\STM32CubeProgrammer_a24180.log
ST-LINK SN : 066FFF534956866687013736
ST-LINK FW : V2J41M27
Board : 32F746GDISCOVERY
Voltage : 3.24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x449
Revision ID : Rev Z
Device name : STM32F74x/STM32F75x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x90
Debug in Low Power mode enabled
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a24180.srec
File : ST-LINK_GDB_server_a24180.srec
Size : 599.43 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 6]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:10.570
Verifying ...
Download verified successfullyWhen using "run" I get the following:
STMicroelectronics ST-LINK GDB server. Version 7.3.0
Copyright (c) 2023, 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...
Debugger connected
Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.13.0
-------------------------------------------------------------------
Log output file: C:\Users\Model\AppData\Local\Temp\STM32CubeProgrammer_a06584.log
ST-LINK SN : 066FFF534956866687013736
ST-LINK FW : V2J41M27
Board : 32F746GDISCOVERY
Voltage : 3.24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x449
Revision ID : Rev Z
Device name : STM32F74x/STM32F75x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x90
Debug in Low Power mode enabled
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a06584.srec
File : ST-LINK_GDB_server_a06584.srec
Size : 599.43 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 6]
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:10.765
Verifying ...
Download verified successfully
Shutting down...
Exit.I don´t see any differences there.
After using the "debug" command, I always press "resume" to start the programm. Is anything wrong with that?
Thanks for your help!
