vscode调试stm32,Cortex Debug的配置文件lanuch.json如何写,日志

https://blog.csdn.net/jiladahe1997/article/details/122046665

https://discuss.em-ide.com/blog/67-cortex-debug

第一版

c 复制代码
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

       {
    "name": "Cortex Debug (OpenOCD)",
    "type": "cortex-debug",
    "request": "launch",
    "servertype": "openocd",
    "cwd": "${workspaceFolder}",
    "executable": "./build/UARTRxInterrupt.elf",
    "device": "STM32H743VI",
    "configFiles": [
        "interface/stlink.cfg",
        "target/stm32h7x.cfg"  
    ],
    "gdbPath": "/Users/zhy/Tools/xpack-arm-none-eabi-gcc-14.2.1-1.1/bin/arm-none-eabi-gdb"
}
  

    ]
}

第二版代码

c 复制代码
{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [


       {
    "name": "Cortex Debug (OpenOCD)",
    "type": "cortex-debug",
    "request": "launch",
    "servertype": "openocd",
    "cwd": "${workspaceFolder}",
    "executable": "./build/UARTRxInterrupt.elf",
    "device": "STM32H743VI",
    "configFiles": [
        "interface/stlink.cfg",
        "target/stm32h7x.cfg"  
    ],
    "svdFile": "/Users/zhy/Tools/STM32H743.svd",
    "gdbPath": "/Users/zhy/Tools/xpack-arm-none-eabi-gcc-14.2.1-1.1/bin/arm-none-eabi-gdb",
    "liveWatch": {
    "enabled": true,
    "samplesPerSecond": 4
}
}
  

    ]
}
相关推荐
__万波__15 分钟前
STM32L475看门狗
stm32·单片机·嵌入式硬件
量子炒饭大师10 小时前
【一天一个计算机知识】—— VScode 极速搭建:打造你的全能代码武器库
ide·vscode·编辑器
程序员贵哥10 小时前
彻底还原VSCode:Windows下完全重置VS Code配置的方法
vscode
石国10 小时前
windows10 win10 pyside6 vscode 安装与配置
vscode·pyside6·windows10
-嘟囔着拯救世界-10 小时前
【保姆级教程】Win11 下从零部署 Claude Code:本地环境配置 + VSCode 可视化界面全流程指南
人工智能·vscode·ai·编辑器·html5·ai编程·claude code
qq_4037425510 小时前
Ubuntu 24.04 安装 LaTeX + VSCode 环境指南
vscode·其他
红廉骑士兽10 小时前
VSCode远程连接云端LLM实现低延迟私有知识交互
vscode· 远程开发· anything-llm
gagaga....10 小时前
解决claude code for vscode对话返回 api error: 403 {“error“:{“type“:“forbidden“,“message“:.....的问题过程
ide·vscode·编辑器
hjx05101110 小时前
VSCode与Anaconda安装全攻略
ide·vscode·编辑器
小小管写大大码10 小时前
如何让vscode变得更智能?vscode接入claude实现自动编程
运维·ide·vscode·自动化·编辑器·ai编程·腾讯云ai代码助手