Question
Application was not running in RELEASE mode by saying "Debugger connection lost. Shutting down..."
Hi have a simpler STM32 application which includes below simpler code in main.c file.
#include <stdio.h>
int main(){
int a=10, b=20;
printf("Sum=%d \n", a+b);
return 0;
}Later i build the project in RELEASE mode and ran the application then it was throwing below error.
STMicroelectronics ST-LINK GDB server. Version 5.6.0
Copyright (c) 2020, 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
-------------------------------------------------------------------
STM32CubeProgrammer v2.5.0-RC1
-------------------------------------------------------------------
ST-LINK SN : 066DFF535254887767171939
ST-LINK FW : V2J37M26
Board : 32F469IDISCOVERY
Voltage : 3.27V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x434
Revision ID : Rev A
Device name : STM32F469xx/F467xx
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M4
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a02796.srec
File : ST-LINK_GDB_server_a02796.srec
Size : 4920 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.382
Verifying ...
Download verified successfully
Debugger connection lost.
Shutting down...
Can anybody help me in resolving this issue?
Thanks,
Hari
