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
}
}
  

    ]
}
相关推荐
辰域电子2 小时前
STM32项目开源:智能万年历/智能闹钟设计(代码+原理图+仿真)
stm32·单片机·嵌入式硬件·开源·proteus
淼澄研学2 小时前
Win11 Dev Home与WinGet实操:基于JSON的声明式环境配置指南
json
一条破秋裤2 小时前
STM32F103 RCC 第一层复习:时钟树、外设时钟与重复测试
stm32·单片机·嵌入式硬件
一条破秋裤5 小时前
STM32 单片机两层学习规划
stm32·单片机·学习
雨田言炎6 小时前
2026/09/09 STM32F103复习(三)
stm32·单片机·嵌入式硬件
Jackson_GJH6 小时前
模拟 IIC 逻辑的深度解构
stm32·单片机·嵌入式硬件
zcmodeltech7 小时前
冷链物流沙盘模型控制系统设计——基于STM32与Modbus RTU的冷藏车、冷库全流程动态展示方案
数据结构·stm32·单片机·嵌入式硬件·物联网·能源
智闲电子设计7 小时前
RS485 总线实战:终端电阻、差分信号、半双工方向控制,工程里最容易翻车的几处
c语言·stm32·单片机·嵌入式硬件
WeiXin_DZbishe8 小时前
基于springboot大学生提问箱系统-计算机毕设【课程设计】72593
javascript·vue.js·spring boot·vscode·python·node.js·php
the sun3410 小时前
CMSIS标准与各种库的发展历史+哈弗架构+CPU统一编址
stm32·架构·嵌入式