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.

CCS/UNIFLASH: Reset sensor manually to start execution of code and CLI

Part Number: UNIFLASH
Other Parts Discussed in Thread: CC1310, LAUNCHXL-CC1310

Tool/software: Code Composer Studio

Hey guys,

we use uniflash 4.5.0 and I do have a few questions. We currently use the JTAG interface of a cc1310 launchpad board to flash our cc1310 sensor boards, which lack USB connectivity.

  1. We noticed that we have to reset our sensor boards manually after flashing to ensure code execution. Is this normal?
  2. I cannot set any "reset configuration" since IcePick tells me that there is no connection possible (however, flashing works). With other launchpad boards, which sitll have all there jumpers in place I can connect and choose options. Is this behavior due to the collector board being between uniflash and the sensor?
  3. Regarding CLI, I generated a zip however, I am not sure the correct settings are being applied in my script. Are all settings used which are set in uniflash under the "program" tab?
  4. How can I modify the script, so that the IEEE 1st MAC address is read and printed?
  5. Do you think erase of all unprotected areas and loading the program is sufficient or would you recommend a validation? How can I add a validation task to the CLI script?

I think this is currently all.

Best regards

Slev1n

  • Hello,

    Regarding:

    Slev1n said:
    • Regarding CLI, I generated a zip however, I am not sure the correct settings are being applied in my script. Are all settings used which are set in uniflash under the "program" tab?
    • How can I modify the script, so that the IEEE 1st MAC address is read and printed?

    For the first bullet, yes any custom settings under "Program" and "Settings&Utilities" should be applied. 

    For the second bullet, use the "ReadPriIeee" operation.

    Example:

    > dslite.bat -c .\user_files\configs\cc1310f128.ccxml -a ReadPriIeee

    A device expert will reply to your other questions.

    Thanks

    ki

  • Thank you for your answer, I tried your approach for the MAC print and it works.

    I have to add one thing regarding point 2 from my initial post:

    When setting the switch next to button 2 on the launchpad to "XDS110 Power" I was able to choose a reset method, however I still had to set in a battery to make the code start executing.

    These are my settings:

  • Hi Slev1n,

    May you please provide more details on how exactly are you connecting your custom HW solution ("CC1310 Sensors board") to the LAUNCHXL-CC1310 debugger for flashing?

    Thanks!

  • We do have a JTAG connection and have a similiar layout to the TIDA 00484 board.

  • Hey guys,

    we have been working on our CLI script using UniFlash. We've been through the documentation provided here: https://processors.wiki.ti.com/index.php/UniFlash_v4_Quick_Guide
    as well and do have some questions. We use a cc1310 launchpad and its JTAG connection as flashing device.

    1. Although we activated "Board reset (automatic disconnect/connect)" and ReadPrimaryIeee in UniFlash, we dont see them
    in the generated ufsettings. Here we can only see the "erase" option we've activated before. Is the only way to enable the
    reset and read primaryIeee by employing further commands in the command line interface?

    2. How can we make load programm and verify in one command line? The docu states that either -f or -v can be set in one call.

    3. We noticed that if we use the command
    dslite.bat -c .\user_files\configs\cc1310f128.ccxml -l .\user_files\settings\generated.ufsettings -f .\user_files\images\XXX.hex -e

    and then

    dslite.bat -c .\user_files\configs\cc1310f128.ccxml -v .\user_files\images\20200220_Sens_NewStorage_b9aef9b_.hex -e

    to verify, the verification process works fine for the first time, if we call it again, it fails, always at address 0x00E100.
    Any reason why it only works once? In UniFlash you can repeat it as often as you want, however, flashing the software using CLI
    and then using verify in UniFlash does not work.

    4. We made some tests and noticed, that the generated ccxml file is assigned to a certain launchpad seriel number, i.e. L2000XXX. So,
    if another board is connected, the CLI script will fail. Any chance we can somehow adapt the ccxml file so that it uses any cc1310 launchpad
    no matter which COM port or seriel number it is assigned to?


    Btw. as regarding the "reset" issue from our first post, only if we use UniFlash, we have to manually reset the sensor before it works after flashing, using SmartFlashProgrammer 2 the board is correctly reset and works without further ado.

  • Just wanted to mention that we are still awaiting your answer.

  • Hi

    Slev1n said:

    How can we make load programm and verify in one command line? The docu states that either -f or -v can be set in one call.

    You should be able to write your CLI call as

    dslite.exe flash -c .\user_files\configs\cc1310f128.ccxml -l \user_files\settings\generated.ufsettings -e -f -v .\user_files\images\XXX.hex

    And it should verify after flashing.

    Slev1n said:

    We made some tests and noticed, that the generated ccxml file is assigned to a certain launchpad seriel number, i.e. L2000XXX. So, if another board is connected, the CLI script will fail. Any chance we can somehow adapt the ccxml file so that it uses any cc1310 launchpad no matter which COM port or seriel number it is assigned to?

    If you change the property "Debug Probe Selection" like this, it should work as you like:

    From:

    <property Type="choicelist" Value="1" id="Debug Probe Selection">
        <choice Name="Select by serial number" value="0">
            <property Type="stringfield" Value="LXXXXXXXX" id="-- Enter the serial number"/>
        </choice>
    </property>
    

    To:

    <property Type="choicelist" Value="0" id="Debug Probe Selection"/>

    I am working on getting the answer for the rest of your questions

  • Thank you very much, we really appreciate your efforts!

  • Adapting the CLI code to the following, does the trick:

    dslite.bat -c .\user_files\configs\cc1310f128.ccxml -l \user_files\settings\generated.ufsettings -e -f -v .\user_files\images\XXX.hex -a ReadPriIeee -r 2




    However, the change in the XML file does cause the following error. I am completely new to XML coding so I am not sure about the syntax.

    Failed: Cannot read System Setup data from XML file .\test_CLI\user_files\configs\cc1310f128.ccxml
    Error parsing file:
    Fatal Error at (16, 63): Illegal sequence '--' in comment


    Here the xml-file content:
    <?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/tixds510icepick_c.xml" id="drivers" xml="tixds510icepick_c.xml" xmlpath="drivers"/>
            	
            		   <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/tixds510cortexM.xml" id="drivers" xml="tixds510cortexM.xml" xmlpath="drivers"/>
            	
                
                      <property Type="choicelist" Value="0" id="Debug Probe Selection"/>
      <!-- <choice Name="Select by serial number" value="0"> -->
        <!-- <property Type="stringfield" Value="LXXXXX" id="-- Enter the serial number"/> -->
      <!-- </choice> -->
    <!-- </property> -->
                
                      <property id="SWD Mode Settings" desc="JTAG / SWD / cJTAG Mode" Type="choicelist" Value="4">
      <choice Name="cJTAG (1149.7) 2-pin advanced modes" value="enable">
        <property id="XDS110 Aux Port" desc="Auxiliary COM Port Connection" Type="choicelist" Value="1"/>
      </choice>
    </property>
                
                <platform XML_version="1.2" id="platform_0">
                    <instance XML_version="1.2" desc="CC1310F128" href="devices/cc1310f128.xml" id="CC1310F128" xml="cc1310f128.xml" xmlpath="devices"/>
                </platform>
            </connection>
        </configuration>
    </configurations>

    best wishes and stay healthy

    Slev1n

  • I think this might work:

    <?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/tixds510icepick_c.xml" id="drivers" xml="tixds510icepick_c.xml" xmlpath="drivers"/>
    			<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/tixds510cortexM.xml" id="drivers" xml="tixds510cortexM.xml" xmlpath="drivers"/>
    			<property Type="choicelist" Value="0" id="Debug Probe Selection"/>
    			<property id="SWD Mode Settings" desc="JTAG / SWD / cJTAG Mode" Type="choicelist" Value="4">
    				<choice Name="cJTAG (1149.7) 2-pin advanced modes" value="enable">
    					<property id="XDS110 Aux Port" desc="Auxiliary COM Port Connection" Type="choicelist" Value="1"/>
    				</choice>
    			</property>
    			<platform XML_version="1.2" id="platform_0">
    				<instance XML_version="1.2" desc="CC1310F128" href="devices/cc1310f128.xml" id="CC1310F128" xml="cc1310f128.xml" xmlpath="devices"/>
    			</platform>
    		</connection>
    	</configuration>
    </configurations>

    Regards, 
    Vegard