Skip to content

RTT output is missing #1177

@jakobjung10

Description

@jakobjung10

Describe the bug

When I use the Cortex-Debug extension, I don't get RTT output.

However, when I use the Probe-rs VSCode-extension, RTT output works.
This means that there is no problem in the code itself.

Expected behavior

I expect to see RTT messages in a terminal or some kind of output window.

Screenshots

Image Image

Environment (please complete the following information):

[comment]: <> Whenever possible, please make sure you are using the latest versions of VSCode and our extension

  • Cortex-Debug Version 1.12.1
  • OS: Windows 10
  • GDB Version: GNU gdb (Arm GNU Toolchain 15.2.Rel1 (Build arm-15.86)) 16.3.90.20250906-git
  • Compiler Toolchain Version: rustc 1.91.1 (ed61e7d7e 2025-11-07)
  • Target: "thumbv6m-none-eabi"
  • Device: "STM32F072VBTx"

Please include launch.json

{
            "name": "Debug: Cortex-Debug",
            "type": "cortex-debug",
            "request": "launch",
            "rttConfig": {
                "enabled": true,
                "address": "auto",
                "decoders": [
                    {
                        "label": "RTT",
                        "port": 0,
                        "type": "console"
                    }
                ]
            },
            "breakAfterReset": false,
            "servertype": "stlink",
            "device": "STM32F072VBTx",
            "interface": "swd",
            "cwd": "${workspaceFolder}",
            "executable": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/apus-rs-demo",
            "svdFile": "${workspaceFolder}/device/STM32F0x2.svd",
            "preLaunchTask": "rust: cargo build",
            "showDevDebugOutput": "raw",
        },

Attach text from Debug Console

`[2025-12-28T19:52:23.369Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.
"C:\ST\STM32CubeIDE_1.17.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.stlink-gdb-server.win32_2.2.0.202409170845\tools\bin\ST-LINK_gdbserver.exe" -p 50000 -cp "C:\ST\STM32CubeIDE_1.17.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin" --swd --halt

STMicroelectronics ST-LINK GDB server. Version 7.9.0
Copyright (c) 2024, STMicroelectronics. All rights reserved.

Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 50000
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled

Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
-------------------------------------------------------------------
STM32CubeProgrammer v2.18.0
-------------------------------------------------------------------

Log output file: C:\Users\Jakob\AppData\Local\Temp\STM32CubeProgrammer_a40332.log
ST-LINK SN : 35FF71064E42363247392143
ST-LINK FW : V2J45S7
Board : --
Voltage : 3.24V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x448
Revision ID : Rev Z
Device name : STM32F07x
Flash size : 128 KBytes
Device type : MCU
Device CPU : Cortex-M0
BL Version : 0xA1

Opening and parsing file: ST-LINK_GDB_server_a40332.srec

Memory Programming ...
File : ST-LINK_GDB_server_a40332.srec
Size : 103.51 KB
Address : 0x08000000

Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 51]
Download in Progress:

File download complete
Time elapsed during download operation: 00:00:04.959`

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions