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

    ]
}
相关推荐
QL.ql19 分钟前
vscode的ws环境,esp32s3连接wifi
ide·vscode·编辑器
Hyvial9 小时前
VsCode 使用指南(配置 + 美化)
vscode
陈涛5759 小时前
5个最好用的 JSON 工具推荐:让数据处理变得简单高效
json
十秒耿直拆包选手10 小时前
IDE:vscode的vue3模板
javascript·ide·vscode
Wallace Zhang11 小时前
STM32 - Embedded IDE - GCC - 解决LWRB库在GCC编译器会编译失败,在ARMCC编译器时却正常编译
ide·stm32·嵌入式硬件
ksk自在无敌1 天前
ESP8266的AP模式与STA编写,
stm32·单片机·嵌入式硬件
jllllyuz1 天前
SysTick定时器的工作原理是什么
stm32·单片机·嵌入式硬件
QL.ql1 天前
vscode的wsl环境,ESP32驱动0.96寸oled屏幕
ide·vscode·编辑器
滴滴滴嘟嘟嘟.1 天前
STM32 HAL驱动MPU6050传感器
stm32·单片机·嵌入式硬件
食鹿...1 天前
【记录贴】STM32 I2C 控制 OLED 卡死?根源在 SR1 与 SR2 的读取操作
stm32·单片机·嵌入式硬件