Software/Hardware Stack:
- PX4 v1.14
- Cube Orange Plus
- ST-LINK V3 MINI-E Debugger
Hello,
I am encountering an issue while trying to set up an ST-LINK V3 MINI-E debugger within VSCode for my Cube Orange Plus using PX4 v1.14. I have configured the ST-LINK using the Cortex-Debug extension in my launch.json
file as shown below.
The issue I’m facing is that I cannot get the debugger to stop at my breakpoints or step through the code. Oddly enough, I am still able to read variables and access other information during the debugging session, so the connection seems partially functional.
Here is my launch.json
configuration:
{
“name”: “stlink (cubepilot_cubeorange)”,
“gdbPath”: “/home/gdaly/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gdb”,
“device”: “STM32H753ZI”,
“svdFile”: “”,
“executable”: “/home/gdaly/test/PX4-Autopilot/build/cubepilot_cubeorangeplus_default/cubepilot_cubeorangeplus_default.elf”,
“request”: “launch”,
“type”: “cortex-debug”,
“servertype”: “stutil”,
“cwd”: “${workspaceFolder}”,
“internalConsoleOptions”: “openOnSessionStart”,
“preLaunchCommands”: [
“source ${workspaceFolder}/platforms/nuttx/Debug/PX4”,
“source ${workspaceFolder}/platforms/nuttx/Debug/NuttX”,
“source ${workspaceFolder}/platforms/nuttx/Debug/ARMv7M”,
“set mem inaccessible-by-default off”,
“set print pretty”
]
}