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.

UNIFLASH: Uniflash Command Line issue

Part Number: UNIFLASH
Other Parts Discussed in Thread: CC3235SF

Hi,

I am working on CC3235SF LaunchXL Dev Kit. I am trying to use Uniflash CLI to flash my binary. I have performed the following steps.

1. Generate my application .bin file in Code Composer Studio.

2. Import the .bin file in Uniflash and generate the SLI file.

3. Select Standalone Command Line in Uniflash and clicked Generate Package to generate the .zip file.

4. Connected my CC3235SF Dev Kit to the PC.

5. Extracted the .zip file

6. Executed the dslite.bat file in order to flash the binary. I see the failure as seen below in the highlighted line.

Executing default command:
> dslite --mode serial -c user_files/configs/CC3235SF_BL.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f "user_files/images/TI_App.sli,1"

DSLite version 10.1.0.2076
Configuring Debugger (may take a few minutes on first launch)...
Initializing Register Database...
Initializing: Cortex_M4_0
Executing Startup Scripts: Cortex_M4_0
Connecting...
Loading Images...
info: Cortex_M4_0: CC3235SF(Bootloader)
info: Cortex_M4_0: ...Start to invoke the bootloader...
info: Cortex_M4_0: Trigger XDS reset
Failed: Image loading failed: CreateProcess failed: The system cannot find the file specified.

I am not sure why this failure is seen since the image is present in the user_files\images directory.

It works if I flash directly from the Uniflash tool. Only CLI does not work.

Any help/suggestion on how to resolve this is deeply appreciated.

Thanks and Regards,

Subramanyan

  • Hi Subramanyan,

    The CLI expects the full file path, or the file path relative to the SLImageCreator.exe file. Can you update the file path to your user_files folder?

    Best regards,

    Sarah

  • Hi Sarah,

    This did not work. We changed the paths to absolute paths and it did not many any difference.

    C:\ti\uniflash_6.1.0\simplelink\imagecreator\bin\uniflash_windows_230321_2>dslite
    Executing default command:
    > dslite --mode serial -c user_files/configs/CC3235SF_BL.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f "user_files/images/TI_OTA_Programming_2303.sli,1"

    DSLite version 10.1.0.2076
    Configuring Debugger (may take a few minutes on first launch)...
    Parsing C:\ti\uniflash_6.1.0\simplelink\imagecreator\bin\uniflash_windows_230321_2\ccs_base\common\targetdb\connections\Serial_Connection.xml
    Parsing C:\ti\uniflash_6.1.0\simplelink\imagecreator\bin\uniflash_windows_230321_2\ccs_base\common\targetdb\drivers\serial_mspsl_bootloader.xml
    Parsing C:\ti\uniflash_6.1.0\simplelink\imagecreator\bin\uniflash_windows_230321_2\ccs_base\common\targetdb\devices\CC3235SF_BL.xml
    Parsing cpus/cortex_m4.xml
    Parsing ..\Modules\cortexM4_NotVisible.xml
    Initializing Register Database...
    Parsing C:\Users\subbu\AppData\Local\Texas Instruments\CCS\bin\0\0\12162985086544968108.cache
    Initializing: Cortex_M4_0
    Mapping registers: Cortex_M4_0 - Core Registers
    Mapping registers: Cortex_M4_0 - Hidden
    Building search data: Cortex_M4_0
    Executing Startup Scripts: Cortex_M4_0
    Connecting...
    Loading Images...
    info: Cortex_M4_0: CC3235SF(Bootloader)
    info: Cortex_M4_0: ...Start to invoke the bootloader...
    info: Cortex_M4_0: Trigger XDS reset
    Failed: Image loading failed: CreateProcess failed: The system cannot find the file specified.

  • Hi Sarah,

    The following forum link indicates that CLI will not work with CC3235SF and we have to use instructions related to command line in the document "UniFlash CC3x20, CC3x3x SimpleLinkTm Wi-Fi® and Internet-on-a chipTm Solution ImageCreator and Programming Tool" to program from command line.

    https://e2e.ti.com/support/wireless-connectivity/wifi/f/wi-fi-forum/975813/cc3220sf-uniflash-standalone-command-line-won-t-work/3605706?tisearch=e2e-sitesearch&keymatch=standalone%20command%20line#3605706

    The feedback from TI in the above link says that we cannot use ccxml and instead have to use json.

    Could you check this and clarify what needs to be done.

    Thanks and Regards,

    Subramanyan

  • Hi Sarah,

    I have copied the code in the dslite.bat which is present in the genreated .zip file.

    I think the dslite binary is executed from ccs_base\DebugServer\bin directory and not the SLImageCreator.exe.

    @echo off
    setlocal
    setlocal ENABLEDELAYEDEXPANSION

    REM Path to this batch script
    set UNIFLASH_PATH=%~dp0

    REM Path to DebugServer folder
    set DEBUGSERVER_ROOT=%~dp0ccs_base\DebugServer\

    set MODE=serial
    set EXECUTABLE="!DEBUGSERVER_ROOT!bin\DSLite"

    set GENERATED_COMMAND=-c user_files/configs/CC3235SF_BL.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f "user_files/images/TI OTA_Programming_2303.sli,1"
    set ADDITIONALS=

    REM list available modes
    if "%1"=="--listMode" (
    echo.

    echo Usage: dslite --mode ^<mode^> arg
    echo.

    echo Available Modes for UniFlash CLI:
    echo * flash [default] - on-chip flash programming
    echo * memory - export memory to a file
    echo * load - simple loader [use default options]
    echo * serial - serial flash programming
    if exist !DEBUGSERVER_ROOT!drivers\MSP430Flasher.exe (
    echo * mspflasher - support MSPFlasher command line parameters [deprecated]
    )

    exit /b 0
    )

    REM no parameters given, use the default generated command
    if "%1" EQU "" (
    echo Executing default command:
    echo ^> dslite --mode !MODE! !GENERATED_COMMAND! !ADDITIONALS!
    echo.

    CMD /S /C "%EXECUTABLE% !MODE! !GENERATED_COMMAND! !ADDITIONALS!"
    exit /b !errorlevel!
    )

    REM user options parsing
    set USEROPTIONS=%*

    REM user options without the --mode
    set "_args=%*"
    set "_args=!_args:*%1 =!"
    set "_args=!_args:*%2 =!"

    if "%3"=="" (
    set USEROPTIONS2=
    ) else (
    set USEROPTIONS2=!_args!
    )

    REM custom mode from users
    if "%1" EQU "--mode" (
    set MODE=%2
    set USEROPTIONS=!USEROPTIONS2!
    )

    REM default user options if none given
    if "!USEROPTIONS!" EQU "" (
    set USEROPTIONS=-h
    )

    REM mspflasher support
    if "%MODE%" EQU "mspflasher" (
    set EXECUTABLE=!DEBUGSERVER_ROOT!drivers\MSP430Flasher.exe
    set MODE=
    )

    REM execute with given user parameters
    echo Executing the following command:
    if "!MODE!" EQU "" (
    echo ^> !EXECUTABLE! !USEROPTIONS! !ADDITIONALS!
    ) else (
    echo ^> !EXECUTABLE! !MODE! !USEROPTIONS! !ADDITIONALS!
    )
    echo.

    echo For more details and examples, please visit processors.wiki.ti.com/.../UniFlash_v4_Quick_Guide
    echo.

    CMD /S /C "%EXECUTABLE% !MODE! !USEROPTIONS! !ADDITIONALS!"
    exit /b !errorlevel!

  • Hi, 

    I was able to flash my TI Dev Kit with the following command. It uses the dslite from the Uniflash installed directory.

    dslite image program --file C:\ti\uniflash_6.1.0\TI_OTA_Programming_2303.sli --port COM8

    The generated Command Line package (.zip) still does not work though.

    Regards,

    Subramanyan

  • Hi Subramanyan,

    From your first post, I thought you were talking about the command line interface from the ImageCreator user's guide, chapter 7: https://www.ti.com/lit/swru469

    This is also what my colleague was referring to. This ImageCreator CLI is the correct tool for flashing the CC3xxx devices.

    Best regards,

    Sarah