2018-12-04 23:11:36 -05:00
|
|
|
{
|
2019-03-22 20:55:39 -04:00
|
|
|
"version": "0.2.0",
|
|
|
|
|
"configurations": [
|
|
|
|
|
{
|
2019-06-14 09:17:19 -04:00
|
|
|
"name": "Debug SITL (shell)",
|
2019-03-22 20:55:39 -04:00
|
|
|
"type": "cppdbg",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"args": [
|
|
|
|
|
"${workspaceFolder}/ROMFS/px4fmu_common",
|
|
|
|
|
"-s",
|
|
|
|
|
"etc/init.d-posix/rcS",
|
|
|
|
|
"-t",
|
|
|
|
|
"${workspaceFolder}/test_data"
|
|
|
|
|
],
|
|
|
|
|
"stopAtEntry": false,
|
|
|
|
|
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp",
|
|
|
|
|
"environment": [
|
|
|
|
|
{
|
|
|
|
|
"name": "PX4_SIM_MODEL",
|
|
|
|
|
"value": "shell"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"linux": {
|
2018-12-05 10:54:28 -05:00
|
|
|
"MIMode": "gdb",
|
2019-06-13 21:33:40 -04:00
|
|
|
"externalConsole": false,
|
2018-12-05 10:54:28 -05:00
|
|
|
"setupCommands": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
|
"text": "-enable-pretty-printing",
|
2019-03-22 20:55:39 -04:00
|
|
|
"ignoreFailures": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "PX4 ignore wq signals",
|
2018-12-05 10:54:28 -05:00
|
|
|
"text": "handle SIGCONT nostop noprint nopass",
|
2019-03-22 20:55:39 -04:00
|
|
|
"ignoreFailures": true
|
2018-12-05 10:54:28 -05:00
|
|
|
}
|
|
|
|
|
]
|
2018-12-04 23:11:36 -05:00
|
|
|
},
|
2019-03-22 20:55:39 -04:00
|
|
|
"osx": {
|
2018-12-05 18:00:42 -05:00
|
|
|
"MIMode": "lldb",
|
2019-06-13 21:33:40 -04:00
|
|
|
"externalConsole": true,
|
2018-12-05 18:00:42 -05:00
|
|
|
"setupCommands": [
|
|
|
|
|
{
|
|
|
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
|
|
|
}
|
|
|
|
|
]
|
2019-03-22 20:55:39 -04:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-06-14 09:17:19 -04:00
|
|
|
"name": "Debug SITL (gazebo iris)",
|
2019-03-22 20:55:39 -04:00
|
|
|
"type": "cppdbg",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"args": [
|
|
|
|
|
"${workspaceFolder}/ROMFS/px4fmu_common",
|
|
|
|
|
"-s",
|
|
|
|
|
"etc/init.d-posix/rcS",
|
|
|
|
|
"-t",
|
|
|
|
|
"${workspaceFolder}/test_data"
|
|
|
|
|
],
|
|
|
|
|
"stopAtEntry": false,
|
|
|
|
|
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp",
|
|
|
|
|
"environment": [
|
|
|
|
|
{
|
|
|
|
|
"name": "PX4_SIM_MODEL",
|
|
|
|
|
"value": "iris"
|
|
|
|
|
}
|
|
|
|
|
],
|
2019-06-14 09:17:19 -04:00
|
|
|
"externalConsole": false,
|
|
|
|
|
"preLaunchTask": "gazebo iris",
|
|
|
|
|
"postDebugTask": "gazebo kill",
|
2019-03-22 20:55:39 -04:00
|
|
|
"linux": {
|
2018-12-04 23:11:36 -05:00
|
|
|
"MIMode": "gdb",
|
2019-06-13 21:33:40 -04:00
|
|
|
"externalConsole": false,
|
2018-12-04 23:11:36 -05:00
|
|
|
"setupCommands": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
|
"text": "-enable-pretty-printing",
|
2019-03-22 20:55:39 -04:00
|
|
|
"ignoreFailures": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "PX4 ignore wq signals",
|
2018-12-05 10:54:28 -05:00
|
|
|
"text": "handle SIGCONT nostop noprint nopass",
|
2019-03-22 20:55:39 -04:00
|
|
|
"ignoreFailures": true
|
2018-12-04 23:11:36 -05:00
|
|
|
}
|
2019-03-22 20:55:39 -04:00
|
|
|
]
|
2018-12-04 23:11:36 -05:00
|
|
|
},
|
2019-03-22 20:55:39 -04:00
|
|
|
"osx": {
|
2018-12-05 18:00:42 -05:00
|
|
|
"MIMode": "lldb",
|
2019-06-13 21:33:40 -04:00
|
|
|
"externalConsole": true,
|
2018-12-05 18:00:42 -05:00
|
|
|
"setupCommands": [
|
|
|
|
|
{
|
|
|
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
|
|
|
}
|
|
|
|
|
]
|
2019-03-22 20:55:39 -04:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-06-14 09:17:19 -04:00
|
|
|
"name": "Debug SITL (jmavsim iris)",
|
2019-03-22 20:55:39 -04:00
|
|
|
"type": "cppdbg",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"program": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"args": [
|
|
|
|
|
"${workspaceFolder}/ROMFS/px4fmu_common",
|
|
|
|
|
"-s",
|
|
|
|
|
"etc/init.d-posix/rcS",
|
|
|
|
|
"-t",
|
|
|
|
|
"${workspaceFolder}/test_data"
|
|
|
|
|
],
|
|
|
|
|
"stopAtEntry": false,
|
|
|
|
|
"cwd": "${workspaceFolder}/build/px4_sitl_default/tmp",
|
|
|
|
|
"environment": [
|
|
|
|
|
{
|
|
|
|
|
"name": "PX4_SIM_MODEL",
|
|
|
|
|
"value": "iris"
|
|
|
|
|
}
|
|
|
|
|
],
|
2019-06-14 09:17:19 -04:00
|
|
|
"preLaunchTask": "jmavsim",
|
|
|
|
|
"postDebugTask": "jmavsim kill",
|
2019-03-22 20:55:39 -04:00
|
|
|
"linux": {
|
|
|
|
|
"MIMode": "gdb",
|
2019-06-13 21:33:40 -04:00
|
|
|
"externalConsole": false,
|
2019-03-22 20:55:39 -04:00
|
|
|
"setupCommands": [
|
|
|
|
|
{
|
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
|
"ignoreFailures": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"description": "PX4 ignore wq signals",
|
|
|
|
|
"text": "handle SIGCONT nostop noprint nopass",
|
|
|
|
|
"ignoreFailures": true
|
|
|
|
|
}
|
|
|
|
|
]
|
2018-12-05 18:00:42 -05:00
|
|
|
},
|
2019-03-22 20:55:39 -04:00
|
|
|
"osx": {
|
|
|
|
|
"MIMode": "lldb",
|
2019-06-13 21:33:40 -04:00
|
|
|
"externalConsole": true,
|
2019-03-22 20:55:39 -04:00
|
|
|
"setupCommands": [
|
|
|
|
|
{
|
|
|
|
|
"text": "pro hand -p true -s false -n false SIGCONT",
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-06-14 10:52:58 -04:00
|
|
|
{
|
2019-06-30 18:47:46 -04:00
|
|
|
"name": "Debug px4_fmu-v2/v3/v4 (jlink)",
|
|
|
|
|
"device": "STM32F427VI",
|
|
|
|
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F427.svd",
|
2019-06-14 10:52:58 -04:00
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"servertype": "jlink",
|
|
|
|
|
"interface": "swd",
|
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
|
"preLaunchCommands": [
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/PX4",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/NuttX",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/ARMv7M",
|
|
|
|
|
"set mem inaccessible-by-default off",
|
2019-06-30 18:47:46 -04:00
|
|
|
"set print pretty",
|
2019-06-14 10:52:58 -04:00
|
|
|
]
|
|
|
|
|
},
|
2019-03-22 20:55:39 -04:00
|
|
|
{
|
2019-06-30 18:47:46 -04:00
|
|
|
"name": "Debug px4_fmu-v2/v3/v4 (blackmagic)",
|
2019-03-22 20:55:39 -04:00
|
|
|
"device": "STM32F427VI",
|
|
|
|
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F427.svd",
|
|
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"type": "cortex-debug",
|
2019-06-30 18:47:46 -04:00
|
|
|
"servertype": "bmp",
|
|
|
|
|
"BMPGDBSerialPort": "/dev/ttyACM0",
|
2019-06-13 20:47:27 -04:00
|
|
|
"interface": "swd",
|
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
|
"preLaunchCommands": [
|
2019-06-14 09:18:03 -04:00
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/PX4",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/NuttX",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/ARMv7M",
|
|
|
|
|
"set mem inaccessible-by-default off",
|
|
|
|
|
"set print pretty",
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
2019-06-30 18:47:46 -04:00
|
|
|
"name": "Debug px4_fmu-v4pro (jlink)",
|
|
|
|
|
"device": "STM32F469VI",
|
|
|
|
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F469.svd",
|
2019-06-14 09:18:03 -04:00
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"type": "cortex-debug",
|
2019-06-30 18:47:46 -04:00
|
|
|
"servertype": "jlink",
|
2019-06-14 09:18:03 -04:00
|
|
|
"interface": "swd",
|
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
|
"preLaunchCommands": [
|
2019-06-13 20:47:27 -04:00
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/PX4",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/NuttX",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/ARMv7M",
|
|
|
|
|
"set mem inaccessible-by-default off",
|
|
|
|
|
"set print pretty",
|
|
|
|
|
]
|
2019-03-22 20:55:39 -04:00
|
|
|
},
|
|
|
|
|
{
|
2019-07-26 12:36:27 -04:00
|
|
|
"name": "Debug px4_fmu-v5/v5x (jlink)",
|
2019-06-30 18:47:46 -04:00
|
|
|
"device": "STM32F765VI",
|
|
|
|
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F7x5.svd",
|
2019-03-22 20:55:39 -04:00
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"servertype": "jlink",
|
2019-06-13 20:47:27 -04:00
|
|
|
"interface": "swd",
|
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
|
"preLaunchCommands": [
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/PX4",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/NuttX",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/ARMv7M",
|
|
|
|
|
"set mem inaccessible-by-default off",
|
|
|
|
|
"set print pretty",
|
|
|
|
|
]
|
2019-03-22 20:55:39 -04:00
|
|
|
},
|
|
|
|
|
{
|
2019-08-14 13:13:27 -04:00
|
|
|
"name": "Debug av_x-v1/mro_ctrl-zero-f7 (jlink)",
|
2019-06-30 18:47:46 -04:00
|
|
|
"device": "STM32F777NI",
|
|
|
|
|
"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/STM32F7x7.svd",
|
2019-03-22 20:55:39 -04:00
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"servertype": "jlink",
|
2019-06-13 20:47:27 -04:00
|
|
|
"interface": "swd",
|
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
|
"preLaunchCommands": [
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/PX4",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/NuttX",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/ARMv7M",
|
|
|
|
|
"set mem inaccessible-by-default off",
|
|
|
|
|
"set print pretty",
|
2019-06-30 18:47:46 -04:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "Debug nxp_fmuk66-v3 (jlink)",
|
|
|
|
|
"device": "MK66FN2M0xxx18",
|
|
|
|
|
//"svdFile": "${workspaceRoot}/../cmsis-svd/data/STMicro/XXXX.svd",
|
|
|
|
|
"executable": "${command:cmake.launchTargetPath}",
|
|
|
|
|
"request": "launch",
|
|
|
|
|
"type": "cortex-debug",
|
|
|
|
|
"servertype": "jlink",
|
|
|
|
|
"interface": "swd",
|
|
|
|
|
"cwd": "${workspaceRoot}",
|
|
|
|
|
"internalConsoleOptions": "openOnSessionStart",
|
|
|
|
|
"preLaunchCommands": [
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/PX4",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/NuttX",
|
|
|
|
|
"source ${workspaceRoot}/platforms/nuttx/Debug/ARMv7M",
|
|
|
|
|
"set mem inaccessible-by-default off",
|
|
|
|
|
"set print pretty"
|
2019-06-13 20:47:27 -04:00
|
|
|
]
|
|
|
|
|
}
|
2019-03-22 20:55:39 -04:00
|
|
|
]
|
2019-06-13 20:47:27 -04:00
|
|
|
}
|