sentry_gimbal_hzz/.vscode/launch.json

73 lines
3.5 KiB
JSON
Raw Normal View History

2022-10-20 17:13:02 +08:00
{
// 启动调试的快捷键是F5
2022-10-20 17:13:02 +08:00
"version": "0.2.0",
"configurations": [
2022-11-19 22:47:45 +08:00
// 使用dap-link(如无线调试器时的参考配置)
{
"name": "DAPlink",
2022-10-20 17:13:02 +08:00
"cwd": "${workspaceRoot}",
"executable": "${workspaceRoot}\\build\\basic_framework.elf", // 要下载到调试器的文件,花括号中的是vscode两个预定义的参数
2022-10-20 17:13:02 +08:00
"request": "launch",
"type": "cortex-debug",
//使用J-link GDB Server时必须;其他GBD Server时可选有可能帮助自动选择SVD文件
//支持的设备见 https://www.segger.com/downloads/supported-devices.php
"device": "STM32F407IG",
//svd文件有这个文件才能查看寄存器的值每个单片机都不同。可以在以下地址找到 https://github.com/posborne/cmsis-svd
//该项目的根目录已经提供了C型开发板使用的外设svd文件
"svdFile": "STM32F407.svd",
2022-11-12 18:03:18 +08:00
"servertype": "openocd", //使用的GDB Server
"configFiles": [
"openocd_dap.cfg", // 配置文件已经在根目录提供,若要修改以此类推,openocd的路径下的share/scripts中有各种写好的配置文件
2022-10-20 17:13:02 +08:00
],
2023-03-19 11:11:40 +08:00
"runToEntryPoint": "main", // 调试时在main函数入口停下
"rtos": "FreeRTOS",
//"preLaunchTask": "build task",//先运行Build任务编译项目,取消注释即可使用
// dap若要使用log,请使用Jlink调试任务启动,之后再打开log任务
// 若想要在调试前编译并且打开log,可只使用log的prelaunch task并为log任务添加depends on依赖
2022-10-30 22:19:13 +08:00
},
// 使用j-link进行调试时的参考配置
2022-11-19 22:47:45 +08:00
{
"name": "Jlink",
2022-10-30 22:19:13 +08:00
"cwd": "${workspaceFolder}",
"executable": "${workspaceRoot}\\build\\basic_framework.elf",
2022-10-30 22:19:13 +08:00
"request": "launch",
"type": "cortex-debug",
"device": "STM32F407IG",
"runToEntryPoint": "main",
"showDevDebugOutput": "none",
"servertype": "jlink",
"interface": "swd",
"svdFile": "STM32F407.svd",
"rtos": "FreeRTOS",
2022-11-13 14:40:21 +08:00
// "preLaunchTask": "build task",//先运行Build任务,取消注释即可使用
//"preLaunchTask": "log", // 调试时同时开启RTT viewer窗口,若daplink使用jlinkGDBserver启动,需要先开始调试再打开log
// 若想要在调试前编译并且打开log,可只使用log的prelaunch task并为log任务添加depends on依赖
},
{
"name": "DAP-attach",
"cwd": "${workspaceRoot}",
"executable": "${workspaceRoot}\\build\\basic_framework.elf", // 要下载到调试器的文件,花括号中的是vscode两个预定义的参数
"request": "attach",
"type": "cortex-debug",
"device": "STM32F407IG",
"svdFile": "STM32F407.svd",
"servertype": "openocd",
"configFiles": [
"openocd_dap.cfg",
],
},
{
"name": "Jlink-attach",
"cwd": "${workspaceFolder}",
"executable": "${workspaceRoot}\\build\\basic_framework.elf",
"request": "attach",
"type": "cortex-debug",
"device": "STM32F407IG",
"showDevDebugOutput": "none",
"servertype": "jlink",
"interface": "swd",
"svdFile": "STM32F407.svd",
"rtos": "FreeRTOS",
},
],
2022-10-20 17:13:02 +08:00
}