Other Parts Discussed in Thread: TMDSEMU110-U, UNIFLASH
Tool/software:
Hello,
In an effort to move our complete development environment, I have been trying to get the VSCODE debugging extension to work. I am using a .out built using ccs theia.
I have installed the following extensions:
- TI Embedded debug
- Cortex-Debug
- Cortex-Debug: Device Support Pack - Texas Instruments MSPM0
Hardware: MSPM0G3507 & XDS110 debug probe.
Debugging works in theia using attached configuration file.
Debugging fails in VSCODE using following configuration file, with following error log: "Failed to launch GDB: Remote communication error. Target disconnected: error while reading: Invalid argument. (from target-select extended-remote localhost:50003)"
<projectname> and <user> are replaced with valid naming and paths in my local copy.
{
"version": "0.2.0",
"configurations": [
{
"name": "Flash And Debug with XDS",
"type": "ccs-debug",
"request": "launch",
"projectInfo": {
"name": "<projectname>",
"resourceId": "/<projectname>"
},
"device": "MSPM0G3507",
"cwd": "${workspaceFolder}",
"executable": "${workspaceFolder}/Build/<projectname>.out",
"runToEntryPoint": "main",
"verbose": true,
"debuggerSettings": {
"targetConfigs/MSPM0G3507.ccxml": {
"Texas Instruments XDS110 USB Debug Probe/CS_DAP_0": {
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<PropertyValues/>\n"
},
"Texas Instruments XDS110 USB Debug Probe/CORTEX_M0P": {
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<PropertyValues>\n\n <property id=\"FlashEraseSelection\">\n <curValue>Erase MAIN and NONMAIN necessary sectors only (see warning above)</curValue>\n </property>\n\n <property id=\"FlashVerboseMode\">\n <curValue>1</curValue>\n </property>\n\n</PropertyValues>\n"
}
}
}
},
{
"name": "<projectname>",
"type": "ccs-debug",
"request": "launch",
"projectInfo": {
"name": "<projectname>",
"resourceId": "/<projectname>"
},
"debuggerSettings": {
"targetConfigs/MSPM0G3507.ccxml": {
"Texas Instruments XDS110 USB Debug Probe/CS_DAP_0": {
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<PropertyValues/>\n"
},
"Texas Instruments XDS110 USB Debug Probe/CORTEX_M0P": {
"data": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<PropertyValues>\n\n <property id=\"FlashEraseSelection\">\n <curValue>Erase MAIN and NONMAIN necessary sectors only (see warning above)</curValue>\n </property>\n\n <property id=\"FlashVerboseMode\">\n <curValue>1</curValue>\n </property>\n\n</PropertyValues>\n"
}
}
}
}
]
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: [https://go.microsoft.com/fwlink/?linkid=830387]
"version": "0.2.0",
"configurations": [
{
"cwd": "C:/git/<user>/<projectname>/",
"gdbPath": "C:/Users/<user>/AppData/Local/Texas Instruments/ti-embedded-debug/arm-none-eabi-gdb/14.2.rel1.1/arm-none-eabi-gdb.exe",
"executable": "C:/<user>/gby/chargeguard-msw/Build/<projectname>.out",
"name": "Debug with TI Embedded Debug for VS Code",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"C:/Users/<user>/AppData/Local/Texas Instruments/ti-embedded-debug/openocd/20250414/share/openocd/scripts/interface/xds110.cfg",
"C:/Users/<user>/AppData/Local/Texas Instruments/ti-embedded-debug/openocd/20250414/share/openocd/scripts/board/ti_mspm0_launchpad.cfg"
],
"searchDir": [
"C:/Users/<user>/AppData/Local/Texas Instruments/ti-embedded-debug/openocd/20250414/share/openocd/scripts"
],
"runToEntryPoint": "main",
"showDevDebugOutput": "raw",
"device": "MSPM0G3507",
"serverArgs": [
"-c",
"adapter speed 1000",
"-c",
"transport select swd",
"-c",
"init",
"-c",
"halt",
"-d"
],
"preLaunchCommands": [
"reset halt",
"load"
],
}
]
}
Can you provide support ?