使用jlink可以正常打断点
This commit is contained in:
17
.vscode/launch.json
vendored
17
.vscode/launch.json
vendored
@@ -7,7 +7,7 @@
|
||||
{
|
||||
"cwd": "${workspaceRoot}/Project",
|
||||
"executable": "./output/stm32.elf",
|
||||
"name": "Debug Microcontroller",
|
||||
"name": "ST-Link",
|
||||
"request": "launch",
|
||||
"type": "cortex-debug",
|
||||
"showDevDebugOutput": "raw",
|
||||
@@ -21,6 +21,21 @@
|
||||
"svdFile": "Project/STM32F429.svd",
|
||||
"armToolchainPath": "D:/Program Files/arm-gnu-toolchain/bin",
|
||||
"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,
|
||||
}
|
||||
]
|
||||
}
|
@@ -54,7 +54,10 @@ int main (void)
|
||||
|
||||
while (1)
|
||||
{
|
||||
my_delay_ms (1000);
|
||||
LED2_ON;
|
||||
my_delay_ms (500);
|
||||
LED2_OFF;
|
||||
my_delay_ms (500);
|
||||
if (SysFile_CheckAlarm()==1)
|
||||
{
|
||||
//发送闹钟时间到的消息
|
||||
|
Reference in New Issue
Block a user