使用jlink可以正常打断点

This commit is contained in:
2025-06-29 23:48:38 +08:00
parent 9076184745
commit 582423c27e
2 changed files with 20 additions and 2 deletions

17
.vscode/launch.json vendored
View File

@@ -7,7 +7,7 @@
{ {
"cwd": "${workspaceRoot}/Project", "cwd": "${workspaceRoot}/Project",
"executable": "./output/stm32.elf", "executable": "./output/stm32.elf",
"name": "Debug Microcontroller", "name": "ST-Link",
"request": "launch", "request": "launch",
"type": "cortex-debug", "type": "cortex-debug",
"showDevDebugOutput": "raw", "showDevDebugOutput": "raw",
@@ -21,6 +21,21 @@
"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,
},
{
"cwd": "${workspaceRoot}/Project",
"executable": "./output/stm32.elf",
"name": "J-Link",
"request": "launch",
"type": "cortex-debug",
"showDevDebugOutput": "raw",
"servertype": "jlink",
"serverpath": "D:/RT-ThreadStudio/repo/Extract/Debugger_Support_Packages/SEGGER/J-Link/v7.50a/JLinkGDBServerCL.exe",
"device": "stm32f429ig",
"interface": "swd",
"svdFile": "Project/STM32F429.svd",
"armToolchainPath": "D:/Program Files/arm-gnu-toolchain/bin",
"breakAfterReset": true,
} }
] ]
} }

View File

@@ -54,7 +54,10 @@ int main (void)
while (1) while (1)
{ {
my_delay_ms (1000); LED2_ON;
my_delay_ms (500);
LED2_OFF;
my_delay_ms (500);
if (SysFile_CheckAlarm()==1) if (SysFile_CheckAlarm()==1)
{ {
//发送闹钟时间到的消息 //发送闹钟时间到的消息