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

    ]
}
相关推荐
chao1898449 小时前
STM32 HAL库驱动AT24C02 EEPROM例程
stm32·单片机·嵌入式硬件
zh_xuan11 小时前
解决VS Code 控制台中文乱码
c++·vscode·乱码
猫猫的小茶馆11 小时前
【Python】函数与模块化编程
linux·开发语言·arm开发·驱动开发·python·stm32
feifeigo12311 小时前
STM32矩阵键盘驱动(库函数版)实现
stm32·矩阵·计算机外设
猿儿本无心12 小时前
快速搭建Python项目(Vscode+uv+FastAPI)
vscode·python·uv
嵌入式小站12 小时前
STM32 零基础可移植教程 05:按键消抖,为什么按一次会触发好几次
chrome·stm32·嵌入式硬件
拾知_H13 小时前
STM32/Delay延时函数编程思路
stm32·单片机·时钟·延时
2zcode14 小时前
基于STM32的智能扫地机器人设计与实现
stm32·嵌入式硬件·机器人
jllllyuz15 小时前
单相并网逆变器控制代码实现(STM32版)
stm32·单片机·嵌入式硬件
π同学17 小时前
ESP-IDF+vscode开发ESP32第十二讲——event
vscode·esp32·事件循环库event