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

    ]
}
相关推荐
DIY机器人工房1 小时前
0.96寸OLED显示屏 江协科技学习笔记(36个知识点)
笔记·科技·stm32·单片机·嵌入式硬件·学习·江协科技
Natsume17103 小时前
嵌入式开发:GPIO、UART、SPI、I2C 驱动开发详解与实战案例
c语言·驱动开发·stm32·嵌入式硬件·mcu·架构·github
m0_555762904 小时前
STM32常见外设
stm32·单片机·嵌入式硬件
木头没有瓜4 小时前
vscode离线安装插件
ide·vue.js·vscode
循环过三天5 小时前
3-1 PID算法改进(积分部分)
笔记·stm32·单片机·学习·算法·pid
东风点点吹6 小时前
STM32F103的boot跳转APP不成功问题排除
stm32·单片机·嵌入式硬件
NeRF_er7 小时前
使用 VScode Debug加不上断点的原因
ide·vscode·编辑器
火车叨位去19498 小时前
Java中的JSON序列化和反序列化
json
猫猫的小茶馆8 小时前
【STM32】预分频因子(Prescaler)和重装载值(Reload Value)
c语言·stm32·单片机·嵌入式硬件·mcu·51单片机
三万棵雪松10 小时前
【STM32HAL-第1讲 基础篇-单片机简介】
stm32·单片机·嵌入式硬件