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/LAUNCHCC3220MODASF: UniFlash/IC command line

Other Parts Discussed in Thread: UNIFLASH, CC3220SF, CC3100, CC3200

Should I make a new thread for this question?

Anyway, more confusion.

I am working with revision 5 but with revision 4 documentation.
Can anyone point me to revision 5 instructions?
The page: software-dl.ti.com/.../uniflash_quick_start_guide.html
has V5 in the URL but clearly says "This guide applies to UniFlash v4." on the page once it loads. If this is correct instrutions for the V5 the web page should be modified to say so.

My goal is to develop a command line interface for our factory setup.
I am trying to understand enough to get even the very first proof of concept but not sure I am headed in the correct direction.

It would really help if TI could do a" hello world" CLI example using either the OOB project or better yet for me the "network_terminal" project (on which our code is based) and show all the steps to program the project into a Launchpad with the CLI starting with the CCS8 output BIN file.
  • Forrest,

    No problem. I can split the thread.

    The guide should say v4 and later. It applies to v5 as well. We will get that updated. There is a big difference between the v4 and v3 tools.

    I will ask around about a CLI example for CC3220SF. The CC32xx family is a bit different in that there is another utility that UniFlash is calling (ImageCreator).

    Regards,
    John
  • John,

    Regarding "...utility that UniFlash is calling (ImageCreator)."  Do you mean dslite.bat?

    In the instructions for CLI in the SWRU469D.pdf on page 34 I see for windows "dslite.bat" for which I am trying to learn to write CLI files.

    So far I have had little success.

    I wrote a .bat file which calls the device info command and seams to work. Here is code.

    ECHO OFF
    CLS
    REM Calls Uniflash to read device information ST365 WiFi
    REM Lee Erickson
    REM Date: 20190520
    REM Run the file: one_time_setup.bat found in C:\ti\uniflash_5.0.0\uniflash\public\file_package_creator\templates\win
    
    ECHO ---Device Info ST365 Wi-Fi---
    
    REM call C:\ti\uniflash_5.0.0\dslite.bat --mode cc32xx device info --json
    CALL C:\ti\uniflash_5.0.0\dslite.bat --mode cc32xx device info
    
    IF %ERRORLEVEL% == 0 ( 
       echo Connection to the CC3220 Launchpad is normal.
       
       REM Errorlevel -1 if Launchpad not plugged in to computer or target or now power.   
    ) ELSE (echo Error: %ERRORLEVEL% Check to see of the CC3220 Launchpad is unpluged from computer or from target or target not powered.)
    
    
    ECHO Good bye...
    PAUSE >NUL
    

    I am trying to figure out what I should do next to, for example, load the network_terminal example.

    <edited>

  • Forrest,

    Section 7 in this doc has more info on using the command line with CC32xx.
    www.ti.com/.../swru469d.pdf

    I am going to send this thread over to our CC32xx team who is more familiar with the commands for CC32xx.

    Regards,
    John
  • John,

    Regarding, "I am going to send this thread over ..."

    Will I need to follow this thread somewhere else or will they participate here?

    Regardless more information.

    I am trying to work with a Project Image per section 7.1.3. I have a project in Uniflash GUI which I have programed into the Launchpad where I changed the version reported on the network_terminal menu so that I can differentiate the project and know I have flash programing success.

    When I try to export the project from Uniflash GUI however I get an error.

      (Note: Since I have modified the example project, I renamed the project from Network Terminal to NetworkTerminal_LEDS_P2P after this screen shot was made.)

    As best I can tell I have the trusted root certificate in place.

    Will keep digging.....

  • Forrest,

    No action is needed by you as far as us moving this thread. We have a way to do that in our backend. I just wanted to mention that it was happening as someone different would be replying.

    Regards,
    John
  • John,

    Thanks for the explanation about the thread.

    More information regarding Uniflash documentation:

    Quick Starter Guide

    The page description at this link:

    should change from:  CC3100 & CC3200 UniFlash Quick Start Guide

    to:  CC3100 & CC3200 Version 3, UniFlash Quick Start Guide (Reference only)

    In SWRU469D

    On page 5 section 2 Terms and Concepts the last item in the table in the lower right hand cell says,

    "The output files are under the image creator installation directory in

    \projects\${project_name}\sl_image\Output"

    However on my computer I find what I think are the files at: "C:\Users\Lee\.SLImageCreator\"

  • Hi Forrest,

    A few things:

    CLI interface - My suggestion is to setup the project via the GUI, and when you are ready to flash your device, run the following command:

    project program --name PROJECT_NAME

    Uniflash saving issue:
    The project you are trying to export cannot find the certs requested. Make sure the either the default is set, or reset these and try again.

    BR,
    Vince
  • Hello Vince,

    I tried to use the GUI to make the project. I have a project which loads the flash in the CC3220 Launch pad with the network_terminal example. 

    However when i tried to export the project it failed. Earlier in this thread was a screen shot of the failure and message, but the screen shot is now gone.

    Will try to  duplicate.

    It would be nice if TI could produce a step by step "hello world" like example to do exactly what you said using any of the example projects for the CC3220 launchpad.

    Thanks,

  • Uniflash GUI Export failure.

    FYI, This project is the network_terminal example with a few changes I made to enable the LEDs to show status of the P2P connection progress.

  • Forrest,

    From the message, it looks like it can't find the certcatalog. Can you verify these are setup properly in the GUI before exporting the project?

    BR,
    Vince
  • Forrest,

    Are you still having issues with this?

    BR,

    Vince 

  • Vince,

    Regarding, "Can you verify these are setup properly in the GUI before exporting the project?"

    I do not have one anwser to this.

    First answer would be,  I can program the target with Uniflash from the GUI. So that seams to be a yes.

    Second answer would be, I have no certCatalog in the GUI so perhaps I have an invalid GUI setup.

    I do not know how to understand the requirement further.

    Can TI provide a properly setup GUI example as a base line?

  • Forrest,

    Here is the commands I use for the CLI to add a image and flash the device:

    :: Replace the files in our project
    call %cwdUNIFLASH%/dslite.bat --mode cc3220 project add_file --name %ProjectName% --file %cwdMCUIMG% --mcu --priv %cwdPRIVKEY% --cert %cwdCACERT% --overwrite


    :: Program the Device
    call %cwdUNIFLASH%/dslite.bat --mode cc3220 project program --name %ProjectName% --dev

    BR,

    Vince 

  • Hello Vince,

    Thanks for the example.

    I hope to get back to this soon. I have become tied up understanding how to set up sockets these past few days and once I have my sockets working will be motivated to program my working code with sockets using Uniflash.

    It is likely to be a few days at best.