forked from raspberrypi/pico-project-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.json
96 lines (94 loc) · 3.24 KB
/
launch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceFolder}",
"executable": "${command:cmake.launchTargetPath}",
"name": "Debug with PyOCD",
"request": "launch",
"type": "cortex-debug",
"runToEntryPoint": "main",
// "runToMain": true,
"showDevDebugOutput": "none",
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"targetId":"rp2040_core0",
//rp2040_core1 rp2040(其实也是cor0)
"servertype": "pyocd"
},
{
"name": "Embedded Debug",
"type": "embedded-debug",
"request": "launch",
"serialNumber": "E6605481DB511F34",
//keil里面可以看到,这个串号就是pyocd里面可以看到的uid
//旧文档里面的获取串号的方法不对,这里用默认配置的Add Configuration Arm:Embedded Debug
"deviceName": "rp2040",
"processorName": "rp2040_core0",
"program": "${command:embedded-debug.getApplicationFile}",
// "cmsisPack": "https://mcuxpresso.nxp.com/cmsis_pack/repo/NXP.K32L3A60_DFP.13.1.0.pack",
"pdsc": "C:\\Users\\AlwaysTS\\AppData\\Local\\cmsis-pack-manager\\cmsis-pack-manager\\ARM.CMSIS.5.9.0.pdsc",
"svd": "D:/MyProgramData/MCU_SDK/pico-sdk/src/rp2040/hardware_regs/rp2040.svd",
"debugFrom": "main"
},
//只调试Core0,适用于使用PicoDebug uf2自调试固件
{
"name": "Pico Core0 Debug",
"cwd": "${workspaceRoot}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"showDevDebugOutput": "raw",
"type": "cortex-debug",
"servertype": "openocd",
// "gdbPath": "gdb-multiarch",
"gdbPath": "arm-none-eabi-gdb",
"device": "RP2040",
"configFiles": [
//"interface/raspberrypi-swd.cfg",
"interface/cmsis-dap.cfg",
"target/rp2040-core0.cfg"
],
"openOCDLaunchCommands": [
"transport select swd",
"adapter speed 1000"
],
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"runToEntryPoint": "main",
// Give restart the same functionality as runToEntryPoint - main
"postRestartCommands": [
"break main",
"continue"
]
},
{
"name": "RP2040 Debug",
"cwd": "${workspaceRoot}",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"showDevDebugOutput":"raw",
"type": "cortex-debug",
"servertype": "openocd",
// "gdbPath": "gdb-multiarch",
"gdbPath": "arm-none-eabi-gdb",
"device": "RP2040",
"configFiles": [
//"interface/raspberrypi-swd.cfg",
"interface/cmsis-dap.cfg",
"target/rp2040.cfg"
],
"openOCDLaunchCommands": [
"transport select swd",
"adapter speed 1000"
],
"svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd",
"runToEntryPoint": "main",
// Give restart the same functionality as runToEntryPoint - main
"postRestartCommands": [
"break main",
"continue"
]
}
]
}