forked from ARMmbed/mbed-os
-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Labels
BugDis is brokenDis is broken
Description
for VSCode:
The generated debug configuration launch.json contains a wrong entry for overrideLaunchCommands in the 2nd target (same as for 1st target), causing to load a wrong program:
{
"configurations": [
// Debug launch for target Hello.
{
"type": "cortex-debug",
"name": "Debug Hello FK743M5_XIH6 debug",
"executable": "/home/jojo/projects/mbed/mbed-ce-H7/build/FK743M5_XIH6_STM32CUBE-Debug/app_hello/Hello.elf",
"cwd": "${workspaceRoot}",
"gdbPath": "/opt/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb",
"objdumpPath": "/opt/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-objdump",
"servertype": "external",
"gdbTarget": "127.0.0.1:23331",
"request": "launch",
"preLaunchTask": "Build Hello and start GDB server",
// Override the command sequences used by VS Code to be correct for this GDB server
"overrideLaunchCommands": ["monitor reset", "load \"/home/jojo/projects/mbed/mbed-ce-H7/build/FK743M5_XIH6_STM32CUBE-Debug/app_hello/Hello.hex\"", "tbreak main", "monitor reset"],
"overrideRestartCommands": ["monitor reset"],
},
// Debug launch for target test_display.
{
"type": "cortex-debug",
"name": "Debug test_display FK743M5_XIH6 debug",
"executable": "/home/jojo/projects/mbed/mbed-ce-H7/build/FK743M5_XIH6_STM32CUBE-Debug/app_test_display/test_display.elf",
"cwd": "${workspaceRoot}",
"gdbPath": "/opt/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb",
"objdumpPath": "/opt/arm-gnu-toolchain-13.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-objdump",
"servertype": "external",
"gdbTarget": "127.0.0.1:23331",
"request": "launch",
"preLaunchTask": "Build test_display and start GDB server",
// Override the command sequences used by VS Code to be correct for this GDB server
"overrideLaunchCommands": ["monitor reset", "load \"/home/jojo/projects/mbed/mbed-ce-H7/build/FK743M5_XIH6_STM32CUBE-Debug/app_hello/Hello.hex\"", "tbreak main", "monitor reset"],
"overrideRestartCommands": ["monitor reset"],
},
]
}Metadata
Metadata
Assignees
Labels
BugDis is brokenDis is broken