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.
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 -
Version: 1.4.0.12
Default VS Code API: 1.85.1
VS Code Compatibility
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.
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.)
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
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 !