使用jlink下载程序
This commit is contained in:
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
@@ -30,9 +30,10 @@
|
|||||||
"type": "cortex-debug",
|
"type": "cortex-debug",
|
||||||
"showDevDebugOutput": "raw",
|
"showDevDebugOutput": "raw",
|
||||||
"servertype": "jlink",
|
"servertype": "jlink",
|
||||||
"serverpath": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/SEGGER/J-Link/v7.50a/JLinkGDBServerCL.exe",
|
"serverpath": "tools/v7.50a/JLinkGDBServerCL.exe",
|
||||||
"device": "stm32f429ig",
|
"device": "stm32f429ig",
|
||||||
"interface": "swd",
|
"interface": "swd",
|
||||||
|
"loadFiles": [],
|
||||||
"svdFile": "Project/STM32F429.svd",
|
"svdFile": "Project/STM32F429.svd",
|
||||||
"armToolchainPath": "D:/Program Files/arm-gnu-toolchain/bin",
|
"armToolchainPath": "D:/Program Files/arm-gnu-toolchain/bin",
|
||||||
"breakAfterReset": true,
|
"breakAfterReset": true,
|
||||||
|
20
.vscode/tasks.json
vendored
20
.vscode/tasks.json
vendored
@@ -16,12 +16,12 @@
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "download",
|
"label": "download stlink",
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"command": "openocd",
|
"command": "openocd",
|
||||||
"args": [
|
"args": [
|
||||||
"-f",
|
"-f",
|
||||||
"interface/stlink-v2.cfg",
|
"interface/stlink.cfg",
|
||||||
"-f",
|
"-f",
|
||||||
"target/stm32f4x.cfg",
|
"target/stm32f4x.cfg",
|
||||||
"-c",
|
"-c",
|
||||||
@@ -31,6 +31,22 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"cwd": "${workspaceFolder}/Project"
|
"cwd": "${workspaceFolder}/Project"
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "download jlink",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "tools/v7.50a/JLink.exe",
|
||||||
|
"args": [
|
||||||
|
"-autoconnect", "1",
|
||||||
|
"-device", "stm32f429ig",
|
||||||
|
"-if", "swd",
|
||||||
|
"-speed", "4000",
|
||||||
|
"-commandfile", "download.jlink"
|
||||||
|
],
|
||||||
|
"group": "build",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceFolder}/Project",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
3
Project/.gitignore
vendored
3
Project/.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
output/
|
output/
|
||||||
|
tools/
|
5
Project/download.jlink
Normal file
5
Project/download.jlink
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
reset
|
||||||
|
erase
|
||||||
|
loadfile output/stm32.hex
|
||||||
|
r
|
||||||
|
qc
|
Reference in New Issue
Block a user