ESP32S3 VSCODE openocd JTAG调试设置

先安装 espressif idf插件

 设置插件

 

 主要是修改

 

{
  "C_Cpp.intelliSenseEngine": "Tag Parser",
  "idf.adapterTargetName": "esp32s3",
  "idf.openOcdConfigs": [

    "board/esp32s3-builtin.cfg"
  ],
  "idf.portWin": "COM42",
  "idf.flashType": "JTAG",
  "idf.listDfuDevices": [
  
  ],
  "files.associations": {
    "freertos.h": "c",
    "sdkconfig.h": "c",
    "esp_spi_flash.h": "c",
    "esp_system.h": "c",
    "esp_attr.h": "c",
    "esp_log.h": "c",
    "soc_memory_types.h": "c",
    "crosscore_int.h": "c",
    "startup_internal.h": "c"
  },
  "idf.flashBaudRate": "460800",
  "idf.launchMonitorOnDebugSession": false,
  "idf.openOcdLaunchArgs": [
  
  ],
  "openocd.tcl.port": 3333
}

修改对应的端口我的是com42

还有一个文件修改

 

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "GDB",
      "type": "cppdbg",
      "request": "launch",
      "MIMode": "gdb",
      "miDebuggerPath": "${command:espIdf.getXtensaGdb}",
      "program": "${workspaceFolder}/build/${command:espIdf.getProjectName}.elf",
      "windows": {
        "program": "${workspaceFolder}\\build\\${command:espIdf.getProjectName}.elf"
      },
      "cwd": "${workspaceFolder}",
      "environment": [{ "name": "PATH", "value": "${config:idf.customExtraPaths}" }],
      "setupCommands": [
        { "text": "set remotetimeout 100" },
        { "text": "target extended-remote :3333" },
        { "text": "set remote hardware-watchpoint-limit 2"},
        { "text": "mon reset halt" },
        { "text": "thb app_main" },
        { "text": "flushregs" }
      ],
      "externalConsole": false,
      "logging": {
        "engineLogging": true
      }
    }
  ]
}

开始调试---先按F1

开启openocd

 输出对应的信息

 按F5进入调试模式 需要多启动几次

 

  • 5
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

BoRuiYiQi

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值