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/CC3220SF-LAUNCHXL: Flash Program image /Bin/Hex using command line tool from Uniflash/OPENOCD

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

Tool/software: Code Composer Studio

Hello ,

1)  Is there any provision to flash Image/Bin/Hex using command line in windows from Uniflash or openocd on CC3220sf Moad .Since Command line improves the efficiency compared to GUI based flash .

2)can one use Openocd to flash Image /bin/hex as well as Debug on CC3220sf .

Thanks and Regards

  • Hello,

    Ashokraj Pillai said:
    1)  Is there any provision to flash Image/Bin/Hex using command line in windows from Uniflash or openocd on CC3220sf Moad .Since Command line improves the efficiency compared to GUI based flash .

    Yes, CLI is supported:

    http://software-dl.ti.com/ccs/esd/uniflash/docs/v5_0/quick_start_guide/uniflash_quick_start_guide.html#standalone-command-line-tool

    Ashokraj Pillai said:
    2)can one use Openocd to flash Image /bin/hex as well as Debug on CC3220sf .

    Yes, but it is recommend to use CCS/UniFlash instead.

    thanks

    ki

  • Thanks for your reply ,

                                   while using standalone command line interface  i a m getting error when i run dslite.bat i get error i am pasting my error below .

    DSLite version 9.2.0.1723
    Configuring Debugger (may take a few minutes on first launch)...
            Initializing Register Database...
            Initializing: IcePick_C
            Executing Startup Scripts: IcePick_C
            Initializing: CS_DAP
            Executing Startup Scripts: CS_DAP
            Initializing: Cortex_M4_0
            Executing Startup Scripts: Cortex_M4_0
    Cortex_M4_0: GEL Output:
    Memory Map Initialization Complete
    Connecting...
    Cortex_M4_0: GEL Output:
    Target Reset
    Loading Program: user_files/images/tcpecho_CC3220SF_LAUNCHXL_tirtos_gcc.bin
            Preparing ...
            0 of 32752 at 0x0
    warning: Cortex_M4_0: Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be written to the target.  Check your linker configuration and/or memory map.
            0 of 32752 at 0x7ff0: 36%
            0 of 24388 at 0xffe0: 72%
            Finished: 72%
            Setting PC to entry point.: 72%
    Verifying Program: user_files/images/tcpecho_CC3220SF_LAUNCHXL_tirtos_gcc.bin
            Preparing ...
            0 of 32752 at 0x0
    error: Cortex_M4_0: File Loader: Verification failed: Values at address 0x00000000 do not match Please verify target memory and memory map.
            Finished
    Failed: File: user_files/images/tcpecho_CC3220SF_LAUNCHXL_tirtos_gcc.bin: a data verification error occurred, file load failed.

    if i build and instatly i want to upload my bin /image/hex file using command line can u explain me step by step process

  • Hi,

    I am not sure what you want to do.

    • Do you want to upload content of on chip XIP flash?
    • Or you want to upload content of external serial flash (sFlash)?

    First point is related to development stage only and can be done via JTAG/SWD. And it can easily done from IDE like a CCS or IAR easily. It not makes sense do this as separate step because its integral part of development/debug process.

    2nd pint can be done via UART only via Uniflash GUI, Uniflash CLI, Embedded programming.

    You shroud not forgot that workflow with CC3220 is little bit different that at other MCUs with flash.

    Jan

  • hi  Jan,

    Thanks replying

    Yes i want to upload content of external serial flash (sFlash).

    but i want do it using Command line and not Debug IDE because of i am used to command line and i find it more productive and less time consuming .

    I want to upload my code into my serial flash using command line ,since i have keybinded single project to build

    Thanks and Regards

  • Hi,

    Programming of sFlash can be done via UART not JTAG/SWD. From this reason this cannot be done via OpenOCD.

    Description of Uniflash CLI you find at my previous answer (swru469). Your CLI commands should look like a:

    REM add new version of bin into project
    call dslite.bat --mode cc32xx project add_file --name your-Uniflah-project-name --file image\dev\your-project-binary.bin --mcu --priv certificate\dummy-development\dummy-root-ca-cert-key --cert dummy-root-ca-cert --overwrite
    REM program via COM5
    call dslite.bat --mode cc32xx project program --name your-Uniflah-project-name --port COM5 --dev
    

    Jan

  • Hello ,

    Thanks Jan for your valuable information

    Can u please tell me the the exact command with example 

    call dslite.bat --mode cc32xx project add_file --name your-Uniflah-project-name --file image\dev\your-project-binary.bin --mcu --priv certificate\dummy-development\dummy-root-ca-cert-key --cert dummy-root-ca-cert --overwrite

    1)add_file which file to add ?

    your uniflash project name can u give me the example for the above command i.e(I m asking for actual command )

  • Hi,

    This command updates firmware file inside Uniflash project (/sys/mcuflashimg.bin).

    As first step you should create project by Uniflash GUI. After that you can use command above to update firmware file as needed. Command above is a real command which I use. I only changed name of my project to your-Uniflah-project-name and changed paths to bin and certificate.

    Uniflash CLI commands are described at swru469 as I said before. At this document you find examples as well.

    Jan

  • Hello ,

             Jan 

             1)How to upload content of on chip XIP flash using command line interface .i.e to during my development stage via jtag /swd

           2)is der any command line interface to build my project 

     

     

    Thanks and Regards

             

  • Hi,

    I am not able to answer your question please wait for answer from other users.

    But from my point of view it is very weird request and not make sense. Above you have TIRTOS based project and without IDE (especially CCS) will be your job much harder. With using CCS will be your job nice and easy but without IDE you will not be able to use debug capabilities of TI-RTOS (ROV, EnergyTrace, System Analyzer, etc).

    Jan

  • Thanks jan

               I am getting your point i just want to use command line to flash my device which would make my productive level up.

              I agrre to the fact that code composer studio has got good features but my only question is can we use code composer studio features with command line interface instead of using mouse i.e i  dont want to use my mouse .I am more of Keyboard guy.

    Thanks and Regards

  • Hi,

    Yes, I agree that Uniflash CLI is important thing to improve efficiency of workflow. From this reason I use them as integrated part of CCS.

    But can't imagine how could be possible implemted advanced debug RTOS features into command line interface. Many of this features are based on graphical interface and cannot be easily integrated into command line.

    I know about one new feature of XDS-110 which may to be useful for you, but I am not sure if I can share this information due to NDA. Maybe TI employees may to share this information.

    Jan

  • hello,

           I know about one new feature of XDS-110 which may to be useful for you, but I am not sure if I can share this information due to NDA. Maybe TI employees may to share this information.

    I guess u should share this feature with their permission since u r not disclosing any projects details and u r just sharing one feature which will make workspace easy and efficient .I dont think it should be problem 

    Thanks and Regard

    Thanks and Regards

  • Sorry for the delay:

    Ashokraj Pillai said:
           2)is der any command line interface to build my project 

    Yes. Please see:

    http://dev.ti.com/tirex/explore/node?node=AJpAFDF7v70N4B0-zFMXpw__FUz-xrs__LATEST

    Ashokraj Pillai said:

    I agrre to the fact that code composer studio has got good features but my only question is can we use code composer studio features with command line interface instead of using mouse i.e i  dont want to use my mouse .I am more of Keyboard guy.

    Yes, there are command-line interfaces for building CCS project (see above) and using the CCS debugger via DSS. There is also a command line interface for UniFlash.

    Your other questions are more device specific and I recommend creating a new thread in the Wi-Fi forum.

    Thanks

    ki