2022-12-09 23:22:35 +08:00
|
|
|
{
|
|
|
|
|
"configurations": [
|
2024-11-01 17:17:20 +08:00
|
|
|
{
|
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
|
"executable": "${workspaceFolder}/build/output/kernel.img.out",
|
|
|
|
|
"name": "Debug with PyOCD",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"runToEntryPoint": "main",
|
|
|
|
|
"showDevDebugOutput": "none",
|
|
|
|
|
"servertype": "pyocd",
|
|
|
|
|
"targetId": "_at32f437zmt7",
|
2024-11-03 23:14:25 +08:00
|
|
|
"cmsisPack": "/Users/zhangzheng/Documents/ArteryTek.AT32F435_437_DFP.2.2.1.pack",
|
2024-11-01 17:17:20 +08:00
|
|
|
"symbolFiles": [
|
|
|
|
|
"${workspaceFolder}/build/output/bootstrap.elf",
|
|
|
|
|
"${workspaceFolder}/build/output/mkrtos.elf",
|
|
|
|
|
]
|
|
|
|
|
},
|
2023-09-26 23:40:54 +08:00
|
|
|
{
|
|
|
|
|
"preLaunchTask": "download",
|
|
|
|
|
"name": "openocd",
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"interface": "swd",
|
2024-01-19 22:37:13 +08:00
|
|
|
"executable": "${workspaceFolder}/build/output/bootstrap.elf",
|
2023-09-26 23:40:54 +08:00
|
|
|
"servertype": "openocd",
|
|
|
|
|
"cwd": "${fileDirname}",
|
2024-01-19 22:37:13 +08:00
|
|
|
"gdbPath": "/Users/zhangzheng/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gdb",
|
|
|
|
|
"device": "STM32F103ZE",
|
2023-09-26 23:40:54 +08:00
|
|
|
"configFiles": [
|
2024-01-19 22:37:13 +08:00
|
|
|
"interface/cmsis-dap.cfg",
|
|
|
|
|
"target/stm32f1x.cfg",
|
2023-09-26 23:40:54 +08:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
// "preLaunchTask": "download",
|
|
|
|
|
"name": "jlink",
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"interface": "swd",
|
2024-01-27 15:40:05 +08:00
|
|
|
"executable": "${workspaceFolder}/build/mkrtos/mkrtos_knl/bootstrap.elf",
|
|
|
|
|
// "symbolFiles": [
|
|
|
|
|
// "${workspaceFolder}/build/mkrtos/mkrtos_knl/mkrtos.elf",
|
|
|
|
|
// ],
|
2023-09-26 23:40:54 +08:00
|
|
|
"servertype": "jlink",
|
|
|
|
|
"cwd": "${fileDirname}",
|
|
|
|
|
"device": "STM32F103RE",
|
|
|
|
|
"configFiles": [
|
|
|
|
|
"interface/jlink.cfg",
|
|
|
|
|
"${workspaceFolder}/mkrtos_cfg/stm32f103ret6.cfg",
|
|
|
|
|
]
|
|
|
|
|
},
|
2022-12-09 23:22:35 +08:00
|
|
|
{
|
|
|
|
|
"name": "(gdb) 启动",
|
|
|
|
|
"type": "cppdbg",
|
|
|
|
|
"request": "launch",
|
2024-03-14 23:47:59 +08:00
|
|
|
// "program": "${workspaceFolder}/build/output/bootstrap.elf",
|
2024-07-30 09:37:49 +08:00
|
|
|
// "program": "${workspaceFolder}/build/output/init.elf",
|
2024-03-14 23:47:59 +08:00
|
|
|
"program": "${workspaceFolder}/build/output/mkrtos.elf",
|
2022-12-09 23:22:35 +08:00
|
|
|
"args": [],
|
|
|
|
|
"stopAtEntry": true,
|
|
|
|
|
"cwd": "${fileDirname}",
|
|
|
|
|
"environment": [],
|
|
|
|
|
"externalConsole": false,
|
2023-10-01 01:56:55 +08:00
|
|
|
// "miDebuggerPath": "/opt/homebrew/bin/arm-none-eabi-gdb",
|
2024-07-30 09:37:49 +08:00
|
|
|
// "miDebuggerPath": "/home/zhangzheng/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gdb",
|
2024-08-04 14:35:25 +08:00
|
|
|
// "miDebuggerPath": "/Applications/ArmGNUToolchain/11.3.rel1/aarch64-none-elf/bin/aarch64-none-elf-gdb",
|
2024-07-30 09:37:49 +08:00
|
|
|
// "miDebuggerPath": "/home/zhangzheng/gcc-arm/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gdb",
|
2024-09-22 16:06:39 +08:00
|
|
|
// "miDebuggerPath": "/home/zhangzheng/gcc-arm-none-eabi-5_4-2016q3/bin/arm-none-eabi-gdb",
|
2024-10-07 16:49:32 +08:00
|
|
|
// "miDebuggerPath": "/home/zhangzheng/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gdb",
|
2024-04-27 03:47:45 +00:00
|
|
|
// "miDebuggerPath": "/home/zhangzheng/gcc-arm-10.3-2021.07-aarch64-aarch64-none-elf/bin/aarch64-none-elf-gdb",
|
2024-04-10 14:15:38 +00:00
|
|
|
// "miDebuggerPath": "/home/mkrtos-smart/toolchains/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gdb",
|
2024-09-17 11:38:12 +08:00
|
|
|
// "miDebuggerPath": "/home/toolchains/gcc-arm-10.3-2021.07-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gdb",
|
2025-02-25 13:48:10 +08:00
|
|
|
// "miDebuggerPath": "/Users/zhangzheng/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gdb",
|
|
|
|
|
"miDebuggerPath": "/home/zhangzheng/toolchain/gcc-arm-10.3-2021.07-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb",
|
2025-01-08 20:21:09 +08:00
|
|
|
"miDebuggerServerAddress": "127.0.0.1:33333",
|
2022-12-09 23:22:35 +08:00
|
|
|
"MIMode": "gdb",
|
|
|
|
|
"setupCommands": [
|
|
|
|
|
{
|
|
|
|
|
"description": "为 gdb 启用整齐打印",
|
2022-12-14 23:10:49 +08:00
|
|
|
"text": "-enable-pretty-printing",
|
2022-12-09 23:22:35 +08:00
|
|
|
"ignoreFailures": true
|
|
|
|
|
}
|
|
|
|
|
]
|
2024-01-27 15:40:05 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"name": "Debug J-Link",
|
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
|
"executable": "${workspaceFolder}/build/output/kernel.img.out",
|
|
|
|
|
"serverpath": "/Applications/SEGGER/JLink_V766/JLinkGDBServerCLExe",
|
|
|
|
|
"servertype": "jlink",
|
|
|
|
|
"device": "SWM341XE",
|
|
|
|
|
"interface": "swd",
|
|
|
|
|
"symbolFiles": ["${workspaceFolder}/build/output/mkrtos.elf"],
|
|
|
|
|
// "serialNumber": "", //If you have more than one J-Link probe, add the serial number here.
|
|
|
|
|
// "jlinkscript":"${workspaceRoot}/BSP/SEGGER/K66FN2M0_emPower/Setup/Kinetis_K66_Target.js",
|
|
|
|
|
// "runToMain": true,
|
|
|
|
|
// "svdFile": "${workspaceRoot}/SVD/MK66F18.svd"
|
2022-12-09 23:22:35 +08:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"version": "2.0.0"
|
2022-12-14 23:10:49 +08:00
|
|
|
}
|
|
|
|
|
// -exec add-symbol-file /home/zhangzheng/mkrtos/build/mkrtos/mkrtos_ls/mkrtos_ls.elf 0x8040074
|