1、下载插件Cortex-Debug插件 需要配置两个参数指定gdb路劲与openocd路径: 2、配置launch.jason指定调试信息 { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of exis…
OpenOCD:从官网下载并解压缩 Cortex-Debug:在VScode的扩展商店中,搜索并安装 DIDE-调试程序和CORTEX-DEBUG 用法:遇到其他问题请参考官方教程。 二、Cortex-Debug配置 1.进入Cortex-Debug配置 2.点击“在settings.json中编辑” 3.修改代码,需要注意红色方框内路径要改为自己安装软件的路径 { "markdown.preview.breaks...
"name": "Cortex Debug-stlink", "type": "cortex-debug", "request": "launch", "executable": "${workspaceFolder}\STM32F405 Ethercat\MDK-ARM\debug.elf", "cwd": "${workspaceFolder}\STM32F405 Ethercat", "interface": "swd", "servertype": "openocd", //要选择的GDB server "device": "...
根据自己的环境路径配置INTERFACE_CFG="D:\Program Files\openocd\share\openocd\scripts\interface\stlink-v2.cfg"TARGET_CFG="D:\Program Files\openocd\share\openocd\scripts\target\stm32l0.cfg"# linux下的路径
第二步:安装vscode插件——cortex-debug 在vscode的拓展页面🔍下载 配置cortex-debug(重点) 需要安装ARM-GNU-Toolchain 需要安装一个gdb server,像用JLink的话驱动自带,stlink可以用openOCD 其实以上两个软件都可以在EIDE的实用工具选项安装,省时间 给个EIDE论坛的cortex-debug教程(我当时配置这个用了蛮久,openOCD建...
•OpenOCD: Top (OpenOCD User’s Guide). OpenOCD是一个运行于PC上的开源调试软件,它可以控制包括Wiggler之内的很多JTAG硬件;我们可以将它理解为一种GDB服务程序。 •Cortex-Debug: Cortex-Debug是一个基于VSCode插件形式的调试工具。 为了使用一个集成度比较高一点的开发环境,Cortex-Debug工具是个比较明智的选择...
"type": "cortex-debug", "servertype": "openocd", // 调试器选择 "device": "STM32L151CB", // 使用J-link GDB Server时必须;其他GBD Server时可选(有可能帮助自动选择 SVD文件)。支持的设备见 https://www.segger.com/downloads/supported-devices.php ...
"type":调试的类型,选cortex-debug,这是我们装的插件。 "device":目标芯片,如果使用J-LINK GDB Server时必须要设置。 "svdFile":svd文件的路径。 "servertype":要选择的gdb server。 "name":工程名字 保存后,按下F5即可自动烧录并且debug。 1.4 debug-使用openocd ...
"name": "Debug (OpenOCD)", "cwd": "${workspaceRoot}", "executable": "${workspaceRoot}/build/blinky.elf", "request": "launch", "type": "cortex-debug", "servertype": "openocd", "interface": "swd", "device": "TM4C123GH6PM", ...