使用jlink下载程序

This commit is contained in:
2025-06-30 21:13:15 +08:00
parent 582423c27e
commit 82092d05ab
4 changed files with 27 additions and 4 deletions

3
.vscode/launch.json vendored
View File

@@ -30,9 +30,10 @@
"type": "cortex-debug",
"showDevDebugOutput": "raw",
"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",
"interface": "swd",
"loadFiles": [],
"svdFile": "Project/STM32F429.svd",
"armToolchainPath": "D:/Program Files/arm-gnu-toolchain/bin",
"breakAfterReset": true,

20
.vscode/tasks.json vendored
View File

@@ -16,12 +16,12 @@
},
},
{
"label": "download",
"label": "download stlink",
"type": "shell",
"command": "openocd",
"args": [
"-f",
"interface/stlink-v2.cfg",
"interface/stlink.cfg",
"-f",
"target/stm32f4x.cfg",
"-c",
@@ -31,6 +31,22 @@
"options": {
"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
View File

@@ -1 +1,2 @@
output/
output/
tools/

5
Project/download.jlink Normal file
View File

@@ -0,0 +1,5 @@
reset
erase
loadfile output/stm32.hex
r
qc