This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: CCS Theia does not create launch.json for imported example project

Part Number: CC2340R5
Other Parts Discussed in Thread: CCSTUDIO

Tool/software:

Hi,

I've tried importing an example project for my LP_EM_CC2340R5 but when I try to debug it I get "'launch.json' is not a valid JSON file. Missing debug configuration properties." There seems to be no launch.json file. 

Is the LP_EM_CC2340R5 not supported perhaps? The target configuration does exist. There is no apparent problem with the build and syscfg lists no problems. Also, I have not modified any configuration or settings before building and attempting to debug the project.

CCS Theia Version Info -

Details

Version: 1.4.0.12

Default VS Code API: 1.85.1

VS Code Compatibility

List of extensions

  • @ccs/ccstudio 1.4.0
  • @ccs/ccstudio-debug 1.4.0
  • @ccs/ccstudio-getting-started 1.4.0
  • @ccs/ccstudio-guicomposer 1.4.0
  • @ccs/ccstudio-plugin 1.4.0
  • @ccs/ccstudio-project 1.4.0
  • @ccs/ccstudio-trace-config 1.4.0
  • @ccs/ccstudio-trace-viewer 1.4.0
  • @ccs/ccstudio-updater 1.4.0
  • @theia/bulk-edit 1.46.0
  • @theia/callhierarchy 1.46.0
  • @theia/console 1.46.0
  • @theia/core 1.46.0
  • @theia/debug 1.46.0
  • @theia/editor 1.46.0
  • @theia/editor-preview 1.46.0
  • @theia/electron 1.46.0
  • @theia/external-terminal 1.46.0
  • @theia/file-search 1.46.0
  • @theia/filesystem 1.46.0
  • @theia/git 1.46.0
  • @theia/keymaps 1.46.0
  • @theia/markers 1.46.0
  • @theia/messages 1.46.0
  • @theia/metrics 1.46.0
  • @theia/mini-browser 1.46.0
  • @theia/monaco 1.46.0
  • @theia/navigator 1.46.0
  • @theia/notebook 1.46.0
  • @theia/outline-view 1.46.0
  • @theia/output 1.46.0
  • @theia/plugin-dev 1.46.0
  • @theia/plugin-ext 1.46.0
  • @theia/plugin-ext-headless 1.46.0
  • @theia/plugin-ext-vscode 1.46.0
  • @theia/preferences 1.46.0
  • @theia/preview 1.46.0
  • @theia/process 1.46.0
  • @theia/property-view 1.46.0
  • @theia/remote 1.46.0
  • @theia/scm 1.46.0
  • @theia/scm-extra 1.46.0
  • @theia/search-in-workspace 1.46.0
  • @theia/secondary-window 1.46.0
  • @theia/task 1.46.0
  • @theia/terminal 1.46.0
  • @theia/test 1.46.0
  • @theia/timeline 1.46.0
  • @theia/toolbar 1.46.0
  • @theia/typehierarchy 1.46.0
  • @theia/userstorage 1.46.0
  • @theia/variable-resolver 1.46.0
  • @theia/vsx-registry 1.46.0
  • @theia/workspace 1.46.0

Target Configuration file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<configurations XML_version="1.2" id="configurations_0">
<configuration XML_version="1.2" id="configuration_0">
<instance XML_version="1.2" desc="Texas Instruments XDS110 USB Debug Probe" href="connections/TIXDS110_Connection.xml" id="Texas Instruments XDS110 USB Debug Probe" xml="TIXDS110_Connection.xml" xmlpath="connections"/>
<connection XML_version="1.2" id="Texas Instruments XDS110 USB Debug Probe">
<instance XML_version="1.2" href="drivers/tixds510cs_dap.xml" id="drivers" xml="tixds510cs_dap.xml" xmlpath="drivers"/>
<instance XML_version="1.2" href="drivers/tixds510cortexM0.xml" id="drivers" xml="tixds510cortexM0.xml" xmlpath="drivers"/>
<instance XML_version="1.2" href="drivers/tixds510sec_ap.xml" id="drivers" xml="tixds510sec_ap.xml" xmlpath="drivers"/>
<property Type="choicelist" Value="1" id="Power Selection">
<choice Name="Probe supplied power" value="1">
<property Type="stringfield" Value="3.3" id="Voltage Level"/>
</choice>
</property>
<property Type="choicelist" Value="0" id="JTAG Signal Isolation"/>
<property Type="choicelist" Value="2" id="SWD Mode Settings">
<choice Name="SWD Mode - Aux COM port is target TDO pin" value="nothing"/>
</property>
<property Type="hiddenfield" Value="1" id="SWD.SWJ_DP_DEFAULT_MODE"/>
<property Type="choicelist" Value="0" id="SWD.APPY_PIN_RESET_DORMANT_WAKEUP"/>
<platform XML_version="1.2" id="platform_0">
<instance XML_version="1.2" desc="CC2340R5" href="devices/cc2340r5.xml" id="CC2340R5" xml="cc2340r5.xml" xmlpath="devices"/>
</platform>
</connection>
</configuration>
</configurations>

Thank you!

Austin Eubank

  • Forgot to mention that I'm using Simplelink Low Power SDK Version 8.10.01.02 (06 Jun 2024).

  • Update:

    I just found a way to add a launch.json file but I think it's missing some settings. When I try to debug the program I get "The project does not have a target configuration file." Seems a bit obvious since the launch.json file doesn't have much information in it to begin with.

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "CCS Debug",
                "type": "ccs-debug",
                "request": "launch"
            },
            {
                "name": "CCS Debug (1)",
                "type": "ccs-debug",
                "request": "launch"
            },
            {
                "name": "CCS Debug (2)",
                "type": "ccs-debug",
                "request": "launch"
            }
        ]
    }
    Looks like something is adding generic configurations to it every time I try to debug.
  • Update: 

    Just tried running CCS Theia with the -clean option but still got the same result when attempting to debug.

  • Update for this merry little journey:

    Alright then. It seems that once you have a launch.json created (using Run->Open Configurations) if you then open Project Properties (right click project folder and select Properties) and then open the Debug tab that a new configuration will be created. This configuration works for debugging. I was just now able to debug the project.

    launch.json (I deleted the empty configurations.)

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "buttonled_LP_EM_CC2340R5_freertos_ticlang",
                "type": "ccs-debug",
                "request": "launch",
                "project": "buttonled_LP_EM_CC2340R5_freertos_ticlang",
                "debuggerSettings": {
                    "targetConfigs/CC2340R5.ccxml": {
                        "Texas Instruments XDS110 USB Debug Probe/Cortex_M0P": {
                            "data": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>\n<PropertyValues/>\n"
                        }
                    }
                }
            }
        ]
    }
    Soooo, to reiterate the extra steps I had to take to debug the project after importing it:
    1) If a .theia/launch.json does not exist already in the parent folder where you imported the project, select Run->Add Configuration.
    2) Right click project folder and select Properties->Debug. When you click OK to close the dialog a new configuration will be added to the launch.json.
    3) Go to the Debug view from the left side panel and start debugging.
    I guess I just expected a debug configuration would be automatically added once I built the project (using the Debug configuration) which was what essentially happened after I followed these steps. I didn't manually add any info to the debug configuration.
  • Hello Austin,

    I hope you are doing well. I can make a note to document this process better in our SDK in case it was not very clear, sorry for the confusion. 

    Thanks,
    Alex F

  • Thank you, Alex.

  • I just spent 4 hours on exact same issue.
    When I click on "debug" button I expect the IDE to create the configuration without extra steps. Also the error message is absolutely not explicit.

    Please share this issue to development team !

  • Hello Julien,

    I will share this feedback with the team.

    Thanks,
    Alex F