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.

TMS320F28379D: GUI Composer: Error "Target is not halted" when using custom CCXML and GEL

Part Number: TMS320F28379D

I am trying to use a custom ccxml file and gel for my target.

I have the ccxml file uploaded into GUI composer, and have the appropriate ccxmlpath defined.

The ccxml file references the GEL file located at c:\workspace\f28379d_cpu2.gel on my PC.

The ccxml file and GEL file work together under CCS.  But under GUI composer, I get an error message when trying to connect:  

Note the "Target is not halted".  So perhaps I need to add another GEL_Halt() somewhere in my GEL file?  Can you suggest where?  

The ccxml and gel files are attached.

Thanks!

7140.f28379d_cpu2.gel

(The editor is not letting me upload the ccxml file.)

  • Hi Mark,

    (The editor is not letting me upload the ccxml file.)

    Try zipping ir up and then attaching the zip. Another option is to rename the file extension to *.txt.

  • <?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 XDS100v2 USB Debug Probe" href="connections/TIXDS100v2_Connection.xml" id="Texas Instruments XDS100v2 USB Debug Probe" xml="TIXDS100v2_Connection.xml" xmlpath="connections"/>
                                                                            
            
            
            
            
            
            
            
            <connection XML_version="1.2" id="Texas Instruments XDS100v2 USB Debug Probe">
                                                                                                                
                
                
                
                
                
                
                
                <instance XML_version="1.2" href="drivers/tixds100v2icepick_c.xml" id="drivers" xml="tixds100v2icepick_c.xml" xmlpath="drivers"/>
                                                                                                                
                
                
                
                
                
                
                
                <instance XML_version="1.2" href="drivers/tixds100v2c28x.xml" id="drivers" xml="tixds100v2c28x.xml" xmlpath="drivers"/>
                                                                                                                
                
                
                
                
                
                
                
                <instance XML_version="1.2" href="drivers/tixds100v2cla1.xml" id="drivers" xml="tixds100v2cla1.xml" xmlpath="drivers"/>
                                                                                                                
                
                
                
                
                
                
                
                <instance XML_version="1.2" href="drivers/tixds100v2cs_child.xml" id="drivers" xml="tixds100v2cs_child.xml" xmlpath="drivers"/>
                                                                                                                
                
                
                
                
                
                
                
                <platform XML_version="1.2" id="platform_0">
                                                                                                                                                    
                    
                    
                    
                    
                    
                    
                    
                    <instance XML_version="1.2" desc="TMS320F28379D" href="devices/f28379d.xml" id="TMS320F28379D" xml="f28379d.xml" xmlpath="devices"/>
                                                                                                                                                    
                    
                    
                    
                    
                    
                    
                    
                    <device HW_revision="1" XML_version="1.2" description="" id="TMS320F28379D" partnum="TMS320F28379D" simulation="no">
                                                                                                                                                                                        
                        
                        
                        
                        
                        
                        
                        
                        <router HW_revision="1.0" XML_version="1.2" description="ICEPick_C router" id="IcePick_C_0" isa="ICEPICK_C">
                                                                                                                                                                                                                            
                            
                            
                            
                            
                            
                            
                            
                            <subpath id="Subpath_1">
                                                                                                                                                                                                                                                                
                                
                                
                                
                                
                                
                                
                                
                                <property Type="numericfield" Value="0x11" desc="Port Number_0" id="Port Number"/>
                                                                                                                                                                                                                                                            
                            
                                
                                
                                
                                
                                
                                
                                <cpu HW_revision="1.0" XML_version="1.2" description="C28xx CPU" deviceSim="false" id="C28xx_CPU2" isa="TMS320C28XX">
                                                                                                                                                                                                                                    
                                    
                                    
                                    
                                    
                                    
                                    <property Type="choicelist" Value="0" id="bypass"/>
                                                                                                                                                                                                                                
                                
                                    
                                    
                                    
                                    
                                    <property Type="filepathfield" Value="..\..\f28379d_cpu2.gel" id="GEL File"/>
                                                                                                                                                                
                                
                                
                                
                                </cpu>
                                                                                                                                                                                                        
                                
                                
                                
                                
                                
                                <cpu HW_revision="1.0" XML_version="1.2" description="CLA Accelerator" deviceSim="false" id="CPU2_CLA1" isa="TMS192C2007">
                                                                                                                                                                                                                                    
                                    
                                    
                                    
                                    
                                    
                                    <property Type="choicelist" Value="0" id="bypass"/>
                                                                                                                                                                                                                                
                                
                                
                                
                                
                                
                                </cpu>
                                                                                                                                                                                                        
                                
                                
                                
                                
                                
                                <cpu HW_revision="1.0" XML_version="1.2" description="cs_child" deviceSim="false" id="cs_child_1" isa="cs_child">
                                                                                                                                                                                                                                    
                                    
                                    
                                    
                                    
                                    
                                    <property Type="choicelist" Value="0" id="bypass"/>
                                                                                                                                                                                                                                
                                
                                
                                
                                
                                
                                </cpu>
                                                                                                                                                                                                    
                            
                            
                            
                            
                            
                            </subpath>
                                                                                                                                                                                                                        
                        
                        
                        
                        
                        
                        
                        
                        </router>
                                                                                                                                                                                    
                    
                    
                    
                    
                    
                    
                    
                    </device>
                                                                                                                                                
                
                
                
                
                
                
                
                </platform>
                                                                                                            
            
            
            
            
            
            
            
            </connection>
                                                                        
        
        
        
        
        
        
        
        </configuration>
                                    
    
    
    
    
    
    
    
    </configurations>
    

    Here is the ccxml file

  • The ccxml file and GEL file work together under CCS

    I see an error in CCS also:

    Note the "Target is not halted".  So perhaps I need to add another GEL_Halt() somewhere in my GEL file?  Can you suggest where? 

    You have GEL_Halt() in the StartUp() function:

    StartUp()
    {
    	GEL_Halt();
    }

    You should not have any functionality in StartUp() that requires a connected target  (like GEL_Halt() ). StartUp() runs when the startup GEL file is first loaded, which is typically before the target is connected.

    The recommend place for such actions is in the OnTargetConnect() call:

    https://software-dl.ti.com/ccs/esd/documents/users_guide/gel/OnTargetConnect.html

    Note that the debugger typically halts the target after connecting unless instructed otherwise. The behavior can vary depending on the device (like C2000) and tool (like GUI Composer vs CCS).

    Thanks

    ki

  • Thanks for the feedback.  

    The ccxml and gel are working for me under CCS.  I'll remove GEL_Halt() from StartUp() and see what happens.

    I also think I found part of the issue under GUI composer. 

    I had modified the gel file to automatically run (GEL_run) CPU2 after it is loaded by CCS.  (I don't want to have to manually start the program on CPU2 after it is loaded every time I start a new debug session).  The GEL_run() was added in OnRestart() and OnFileLoaded(). 

    If I remove these modifications, it works under GUI composer.  GUI composer must use a different mechanism to run the cores, and the GEL_run() gets in the way.