cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot start RTOS-aware debug session using J-Link

sluethi
Associate

Starting a debug session in VS Code using the RTOS proxy plugin for FreeRTOS and a J-Link Adapter consistently fails.

Debugging the exact same application without RTOS awareness (serverRtos removed in launch.json) works. So debugging using JLink and the board works. This indicates that there is an issue related to the RtosProxy or RTOS awareness in general.

Is there any further configuration needed that than the launch.json below?

Environment:

  • STM32CubeIDE for Visual Studio Code v3.7.0

  • Packages in Bundles Manager are all on the newest version

launch.json configuration

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "jlinkgdbtarget",
            "request": "launch",
            "name": "STM32Cube: STM32 Launch JLink GDB Server",
            "origin": "snippet",
            "cwd": "${workspaceFolder}",
            "preBuild": "${command:st-stm32-ide-debug-launch.build}",
            "runEntry": "main",
            "imagesAndSymbols": [
                {
                    "imageFileName": "${command:st-stm32-ide-debug-launch.get-projects-binary-from-context1}"
                }
            ],
            "serverRtos": {
                "enabled": true,
                "port": "60000",
                "driver": "freertos",
                "driverPort": "ARM_CM7"
            },
            "verbose": true
        }
    ]
}

 

leads to the debug console output (verbose = false):

SEGGER J-Link GDB Server V8.80 Command Line Version

JLinkARM.dll V8.80 (DLL compiled Oct 22 2025 12:04:10)

Command line: -s -if swd -device STM32H743ZI -speed 4000 -endian little -novd -port 2331
-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     2331
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      yes
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   off
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 STM32H743ZI
Target device parameters:      none
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-K22-Cortex-M compiled Jul  8 2025 10:14:58
Hardware: V1.00
S/N: 900020473
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...
Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
RTOS proxy: STMicroelectronics RTOS Proxy. Version 0.17.0
Copyright (c) 2025, STMicroelectronics. All rights reserved.

Loading RTOS driver... FreeRTOS
Connecting to GDB server 127.0.0.1 on port 2331 ... Connected
Listen for GDB connection on port: 60000 ... GNU gdb (GNU Tools for STM32 14.3.rel1.20251027-0700) 15.2.90.20241229-git
Copyright (C) 2024 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-linux-gnu --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 "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf" 
add symbol table from file "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf"
(y or n) [answered Y; input not from terminal]
Reading symbols from /home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf...
RTOS proxy: Connected
GDB client (conn. 16) requested target.xml from GDB Server
Reading common registers: 
Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0x00000000
Read register 'r2' (4 bytes) from hardware: 0x00000000
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0x00000000
Read register 'r5' (4 bytes) from hardware: 0x00000000
Read register 'r6' (4 bytes) from hardware: 0x00000000
Read register 'r7' (4 bytes) from hardware: 0x00000000
Read register 'r8' (4 bytes) from hardware: 0x00000000
Read register 'r9' (4 bytes) from hardware: 0x00000000
Read register 'r10' (4 bytes) from hardware: 0x00000000
Read register 'r11' (4 bytes) from hardware: 0x00000000
Read register 'r12' (4 bytes) from hardware: 0x00000000
Read register 'sp' (4 bytes) from hardware: 0x24080000
Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF
Read register 'pc' (4 bytes) from hardware: 0x08002768
Read register 'xpsr' (4 bytes) from hardware: 0x01000000
Read 4 bytes @ address 0x08002768 (Data = 0xD034F8DF)
Read 2 bytes @ address 0x08002768 (Data = 0xF8DF)
Read 2 bytes @ address 0x0800276A (Data = 0xD034)
Reset_Handler () at /lib/hal/Core/Startup/startup_stm32h743zitx.s:62
62	  ldr   sp, =_estack      /* set stack pointer */
connected to remote target localhost:60000
monitor reset
Received monitor command: reset
2
Resetting target
tbreak main
Reading 64 bytes @ address 0x08000740
Read 2 bytes @ address 0x0800077E (Data = 0xF000)
Temporary breakpoint 1 at 0x800077e: file /examples/task/main.cpp, line 6.
load "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf" 
Loading section .isr_vector, size 0x298 lma 0x8000000
Downloading 664 bytes @ address 0x08000000
Loading section .text, size 0x1abf0 lma 0x80002a0
RTOS proxy: Lost connection to GDB Client
RTOS proxy: Proxy stopped.
GDB closed TCP/IP connection (Socket 16)
Remote communication error.  Target disconnected: error while reading: Connection reset by peer.
cube is killed by signal SIGTERM

and the verbose output:

From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"jlinkgdbtarget","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true,"supportsANSIStyling":true})
To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsEvaluateForHovers":true,"supportsConfigurationDoneRequest":true,"supportsSetVariable":true,"supportsConditionalBreakpoints":true,"supportsHitConditionalBreakpoints":true,"supportsLogPoints":true,"supportsFunctionBreakpoints":true,"supportsDisassembleRequest":true,"supportsReadMemoryRequest":true,"supportsWriteMemoryRequest":true,"supportsSteppingGranularity":true}}
From client: launch({"type":"jlinkgdbtarget","request":"launch","name":"STM32Cube: STM32 Launch JLink GDB Server","origin":"snippet","cwd":"/home/stefan/classes/bte5483-rtos/examples-exercise-solutions","preBuild":"${command:st-stm32-ide-debug-launch.build}","runEntry":"main","imagesAndSymbols":[{"imageFileName":"SELECTED:/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf"}],"serverRtos":{"enabled":true,"port":"60000","driver":"freertos","driverPort":"ARM_CM7"},"verbose":true,"__configurationTarget":6,"__sessionId":"bf327b14-aa3a-4b9e-aeaf-ebf9ae21289d"})
From Debug Session: start Launch Sequence
From Debug Session: Step pre-build
From Debug Session: Step validate debug configuration
From Debug Session: Step ST-Link device check
From Debug Session: Step start JLink GDB Server
GDB Server command line executed: cube jlink-gdbserver -s -if swd -device STM32H743ZI -speed 4000 -endian little -novd -port 2331
From Debug Session: Step check genuine ST device
From Debug Session: Step start RTOS Proxie(s)
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"SEGGER J-Link GDB Server V8.80 Command Line Version\n\n"}}
SEGGER J-Link GDB Server V8.80 Command Line Version

To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"JLinkARM.dll V8.80 (DLL compiled Oct 22 2025 12:04:10)\n\nCommand line: -s -if swd -device STM32H743ZI -speed 4000 -endian little -novd -port 2331\n-----GDB Server start settings-----\nGDBInit file:                  none\nGDB Server Listening port:     2331\nSWO raw output listening port: 2332\nTerminal I/O port:             2333\nAccept remote connection:      yes\nGenerate logfile:              off\nVerify download:               off\nInit regs on start:            off\nSilent mode:                   off\nSingle run mode:               on\nTarget connection timeout:     0 ms\n------J-Link related settings------\nJ-Link Host interface:         USB\nJ-Link script:                 none\nJ-Link settings file:          none\n------Target related settings------\nTarget device:                 STM32H743ZI\nTarget device parameters:      none\nTarget interface:              SWD\nTarget interface speed:        4000kHz\nTarget endian:                 little\n"}}
JLinkARM.dll V8.80 (DLL compiled Oct 22 2025 12:04:10)

Command line: -s -if swd -device STM32H743ZI -speed 4000 -endian little -novd -port 2331
-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     2331
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      yes
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   off
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 STM32H743ZI
Target device parameters:      none
Target interface:              SWD
Target interface speed:        4000kHz
Target endian:                 little
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"\nConnecting to J-Link...\n"}}

Connecting to J-Link...
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"J-Link is connected.\n"}}
J-Link is connected.
From Debug Session: Step start RTOS Proxy: proxy commands: /home/stefan/.local/share/stm32cube/bundles/rtos-proxy/0.17.0+st.3/bin/RtosProxy, args: PROXY_PORT=60000,PROXY_RSPSERVER_HOST=127.0.0.1,PROXY_RSPSERVER_PORT=2331,PROXY_ELF_OBJECT=/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf,PROXY_RTOS=freertos,PROXY_RTOS_PORT=ARM_CM7
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Firmware: J-Link OB-K22-Cortex-M compiled Jul  8 2025 10:14:58\nHardware: V1.00\nS/N: 900020473\n"}}
Firmware: J-Link OB-K22-Cortex-M compiled Jul  8 2025 10:14:58
Hardware: V1.00
S/N: 900020473
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Checking target voltage...\nTarget voltage: 3.30 V\nListening on TCP/IP port 2331\nConnecting to target...\n"}}
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Halting core...\n"}}
Halting core...
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Connected to target\nWaiting for GDB connection..."}}
Connected to target
Waiting for GDB connection...From Debug Session: Step start gdb client debug
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Connected to 127.0.0.1\n"}}
Connected to 127.0.0.1
To client: {"seq":0,"type":"event","event":"output","body":{"category":"proxy","output":"RTOS proxy: STMicroelectronics RTOS Proxy. Version 0.17.0\nCopyright (c) 2025, STMicroelectronics. All rights reserved.\n\nLoading RTOS driver... FreeRTOS\nConnecting to GDB server 127.0.0.1 on port 2331 ... Connected\nListen for GDB connection on port: 60000 ... "}}
RTOS proxy: STMicroelectronics RTOS Proxy. Version 0.17.0
Copyright (c) 2025, STMicroelectronics. All rights reserved.

Loading RTOS driver... FreeRTOS
Connecting to GDB server 127.0.0.1 on port 2331 ... Connected
Listen for GDB connection on port: 60000 ... GDB notify async: thread-group-added,id="i1"
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"GNU gdb (GNU Tools for STM32 14.3.rel1.20251027-0700) 15.2.90.20241229-git\n"}}
GNU gdb (GNU Tools for STM32 14.3.rel1.20251027-0700) 15.2.90.20241229-git
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Copyright (C) 2024 Free Software Foundation, Inc.\n"}}
Copyright (C) 2024 Free Software Foundation, Inc.
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."}}
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.To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"\nType \"show copying\" and \"show warranty\" for details.\n"}}

Type "show copying" and "show warranty" for details.
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"This GDB was configured as \"--host=x86_64-linux-gnu --target=arm-none-eabi\".\n"}}
This GDB was configured as "--host=x86_64-linux-gnu --target=arm-none-eabi".
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Type \"show configuration\" for configuration details.\n"}}
Type "show configuration" for configuration details.
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"For bug reporting instructions, please see:\n"}}
For bug reporting instructions, please see:
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"<https://www.gnu.org/software/gdb/bugs/>.\n"}}
<https://www.gnu.org/software/gdb/bugs/>.
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Find the GDB manual and other documentation resources online at:\n    <"}}
Find the GDB manual and other documentation resources online at:
    <To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"http://www.gnu.org/software/gdb/documentation/>.\n\n"}}
http://www.gnu.org/software/gdb/documentation/>.

To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"For help, type \"help\".\n"}}
For help, type "help".
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Type \"apropos word\" to search for commands related to \"word\".\n"}}
Type "apropos word" to search for commands related to "word".
GDB command: 0 -gdb-set non-stop off
GDB result: 0 done
GDB command: 1 -gdb-set mi-async on
GDB result: 1 done
From Debug Session: Step load program
GDB command: 2 -file-exec-and-symbols "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf"
GDB result: 2 done
From Debug Session: Step load symbols
GDB command: 3 -enable-pretty-printing
GDB result: 3 done
GDB command: 4 add-symbol-file "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf" 
To client: {"seq":0,"type":"event","event":"output","body":{"category":"log","output":"add-symbol-file \"/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf\" \n"}}
add-symbol-file "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf" 
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"add symbol table from file \"/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf\"\n"}}
add symbol table from file "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf"
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(y or n) [answered Y; input not from terminal]\n"}}
(y or n) [answered Y; input not from terminal]
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Reading symbols from /home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf...\n"}}
Reading symbols from /home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf...
GDB result: 4 done
From Debug Session: Step connect to target
GDB command: 5 -target-select remote localhost:60000
To client: {"seq":0,"type":"event","event":"output","body":{"category":"proxy","output":"RTOS proxy: Connected\n"}}
RTOS proxy: Connected
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"GDB client (conn. 14) requested target.xml from GDB Server\n"}}
GDB client (conn. 14) requested target.xml from GDB Server
GDB notify async: thread-group-started,id="i1",pid="42000"
GDB notify async: thread-created,id="1",group-id="i1"
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Reading common registers: \n"}}
Reading common registers: 
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Read register 'r0' (4 bytes) from hardware: 0x00000000\nRead register 'r1' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r2' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r3' (4 bytes) from hardware: 0x00000000\nRead register 'r4' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r5' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r6' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r7' (4 bytes) from hardware: 0x24003020\nRead register 'r8' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r9' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r10' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r11' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'r12' (4 bytes) from hardware: 0xA5A5A5A5\nRead register 'sp' (4 bytes) from hardware: 0x24003020\nRead register 'lr' (4 bytes) from hardware: 0x08017FE5\nRead register 'pc' (4 bytes) from hardware: 0x080180C8\nRead register 'xpsr' (4 bytes) from hardware: 0x61000000\n"}}
Read register 'r0' (4 bytes) from hardware: 0x00000000
Read register 'r1' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r2' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r3' (4 bytes) from hardware: 0x00000000
Read register 'r4' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r5' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r6' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r7' (4 bytes) from hardware: 0x24003020
Read register 'r8' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r9' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r10' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r11' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'r12' (4 bytes) from hardware: 0xA5A5A5A5
Read register 'sp' (4 bytes) from hardware: 0x24003020
Read register 'lr' (4 bytes) from hardware: 0x08017FE5
Read register 'pc' (4 bytes) from hardware: 0x080180C8
Read register 'xpsr' (4 bytes) from hardware: 0x61000000
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Read 4 bytes @ address 0x080180C8 (Data = 0xD1E12B00)\n"}}
Read 4 bytes @ address 0x080180C8 (Data = 0xD1E12B00)
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"0x080180c8 in prvCheckTasksWaitingTermination () at /lib/freertos/tasks.c:6092\n"}}
0x080180c8 in prvCheckTasksWaitingTermination () at /lib/freertos/tasks.c:6092
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"6092\t        while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )\n"}}
6092	        while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )
GDB exec async: stopped,frame={addr="0x080180c8",func="prvCheckTasksWaitingTermination",args=[],file="/lib/freertos/tasks.c",fullname="/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/lib/freertos/tasks.c",line="6092",arch="armv7e-m"},thread-id="1",stopped-threads="all"
GDB result: 5 connected
To client: {"seq":0,"type":"event","event":"output","body":{"category":"console","output":"connected to remote target localhost:60000"}}
connected to remote target localhost:60000
From Debug Session: Step apply reset strategy
GDB command: 6 monitor reset
To client: {"seq":0,"type":"event","event":"output","body":{"category":"log","output":"monitor reset\n"}}
monitor reset
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Received monitor command: reset\n"}}
Received monitor command: reset
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Resetting target\n"}}
Resetting target
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Resetting target\n"}}
Resetting target
GDB result: 6 done
From Debug Session: Step execute init commands
GDB command: 7 tbreak main
From Debug Session: Step load images
GDB command: 8 load "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf" 
To client: {"seq":0,"type":"event","event":"output","body":{"category":"log","output":"tbreak main\n"}}
tbreak main
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Reading 64 bytes @ address 0x08000740\n"}}
Reading 64 bytes @ address 0x08000740
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Read 2 bytes @ address 0x0800077E (Data = 0xF000)\n"}}
Read 2 bytes @ address 0x0800077E (Data = 0xF000)
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Temporary breakpoint 1 at 0x800077e: file /examples/task/main.cpp, line 6.\n"}}
Temporary breakpoint 1 at 0x800077e: file /examples/task/main.cpp, line 6.
GDB notify async: breakpoint-created,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x0800077e",func="main()",file="/examples/task/main.cpp",fullname="/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/examples/task/main.cpp",line="6",thread-groups=["i1"],times="0",original-location="main"}
GDB result: 7 done
To client: {"seq":0,"type":"event","event":"output","body":{"category":"log","output":"load \"/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf\" \n"}}
load "/home/stefan/classes/bte5483-rtos/examples-exercise-solutions/build/debug/examples/task/example_task.elf" 
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Loading section .isr_vector, size 0x298 lma 0x8000000\n"}}
Loading section .isr_vector, size 0x298 lma 0x8000000
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"Downloading 664 bytes @ address 0x08000000"}}
Downloading 664 bytes @ address 0x08000000To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"\n"}}

GDB status async: download,{section=".isr_vector",section-size="664",total-size="3538798"}
GDB status async: download,{section=".isr_vector",section-sent="664",section-size="664",total-sent="664",total-size="3538798"}
To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Loading section .text, size 0x1abf0 lma 0x80002a0\n"}}
Loading section .text, size 0x1abf0 lma 0x80002a0
To client: {"seq":0,"type":"event","event":"output","body":{"category":"proxy","output":"RTOS proxy: Lost connection to GDB Client\n"}}
RTOS proxy: Lost connection to GDB Client
To client: {"seq":0,"type":"event","event":"output","body":{"category":"proxy","output":"RTOS proxy: Proxy stopped.\n"}}
RTOS proxy: Proxy stopped.
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"GDB closed TCP/IP connection (Socket 14)\n"}}
GDB closed TCP/IP connection (Socket 14)
GDB notify async: thread-exited,id="1",group-id="i1"
GDB notify async: thread-group-exited,id="i1"
To client: {"seq":0,"type":"event","event":"output","body":{"category":"log","output":"Remote communication error.  Target disconnected: error while reading: Connection reset by peer.\n"}}
Remote communication error.  Target disconnected: error while reading: Connection reset by peer.
GDB result: 8 error,msg="Remote communication error.  Target disconnected: error while reading: Connection reset by peer."
From Debug Session: Step cleanup Gdb Client.
GDB command: 9 -gdb-exit
From Debug Session: Step cleanup RTOS Proxy
From Debug Session: Step cleanup GDB Server
GDB result: 9 exit
To client: {"seq":0,"type":"event","event":"output","body":{"category":"server","output":"cube is killed by signal SIGTERM"}}
cube is killed by signal SIGTERMTo client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":false,"message":"bound doStepLoadImages Failed: Remote communication error.  Target disconnected: error while reading: Connection reset by peer.","body":{"error":{"id":1,"format":"bound doStepLoadImages Failed: Remote communication error.  Target disconnected: error while reading: Connection reset by peer.","showUser":true}}}

 

0 REPLIES 0