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.

TMS320F280049: dslight problem

Part Number: TMS320F280049
Other Parts Discussed in Thread: UNIFLASH

Hello,

i tried to use the dslight for flashing the controller via cmd line. But the .bat could not find the dslight.exe. What am i doing wrong?

I installed Uniflash and hoped that it brings everything with it.

C:\ti\uniflash_8.1.1>dslite.bat dslite.exe flash -c "C:\Users\f.xxx\Desktop\uniflash_windows\user_files\configs\f280049.ccxml" -l "C:\Users\f.xxx\Desktop\uniflash_windows\user_files\settings\generated.ufsettings" -e -f -v "C:\Users\f.bichler\Desktop\uniflash_windows\user_files\images\blcop.out"
Executing the following command:
> "C:\ti\uniflash_8.1.1\deskdb\content\TICloudAgent\win\ccs_base\DebugServer\bin\DSLite" flash dslite.exe flash -c "C:\Users\f.xxx\Desktop\uniflash_windows\user_files\configs\f280049.ccxml" -l "C:\Users\f.bichler\Desktop\uniflash_windows\user_files\settings\generated.ufsettings" -e -f -v "C:\Users\f.bichler\Desktop\uniflash_windows\user_files\images\blcop.out"

For more details and examples, please refer to the UniFlash Quick Start guide.

DSLite version 12.2.0.2919
Configuring Debugger (may take a few minutes on first launch)...
        Initializing Register Database...
        Initializing: IcePick_C_0
        Executing Startup Scripts: IcePick_C_0
        Initializing: C28xx_CPU1
        Executing Startup Scripts: C28xx_CPU1
        Initializing: CLA1_0
        Executing Startup Scripts: CLA1_0
Connecting...
C28xx_CPU1: GEL Output:
Memory Map Initialization Complete
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Start ...
C28xx_CPU1: GEL Output: ... DCSM Initialization Done ...
Failed: Unable to open file: dslite.exe

C:\ti\uniflash_8.1.1>

  • Hi Florian,

    Will consult with the other experts on this issue and get back to you within the next few days.

    Thanks and regards,

    Charles

  • Hi Florian,

    Are you able to check/open the dslite.bat file to see what the path is for the dslite.exe? The dslite.bat file sets the path which contains the executable.

    Thanks and regards,

    Charles

  • Hi Charles,

    here is the complete batch file. I hope this is the information you need.

    regards,

    Florian

    @echo off
    setlocal
    setlocal ENABLEDELAYEDEXPANSION
    
    REM Path to this batch script
    set SCRIPT_PATH=%~dp0
    
    REM path to local user TICloudAgent
    set DEBUGSERVER_ROOT=!SCRIPT_PATH!deskdb\content\TICloudAgent\win\ccs_base\DebugServer\
    
    REM update PATH to include the TICloudAgent DS common bin
    set PATH=%PATH%;!DEBUGSERVER_ROOT!..\common\bin\
    
    REM default mode (flash,memory,cc3200,cc32xx) and executable
    set MODE=flash
    set EXECUTABLE="!DEBUGSERVER_ROOT!bin\DSLite"
    
    if "%1"=="" (
    	echo.
    	echo Using default 'flash' mode. ^(Use --listMode option to view available modes and usage^)
    	echo.
    )
    
    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   * cc13xx-cc26xx-mass-erase	- unlock a locked CC13xx/CC26xx device by performing a mass erase
    if exist !SCRIPT_PATH!simplelink (
    	echo   * cc31xx			- flashing SimpleLink CC31xx [imagecreator]
    	echo   * cc32xx			- flashing SimpleLink CC32xx [imagecreator]
    )
    if exist !DEBUGSERVER_ROOT!drivers\MSP430Flasher.exe (
    	echo   * mspflasher			- support MSPFlasher command line parameters [deprecated]
    )
    if exist !SCRIPT_PATH!processors\ProcessorSDKSerialFlash.exe (
    	echo   * processors			- support ProcessorSDKSerialFlash command line parameters [Processor Serial Flash CLI Tool]
    )
    	exit /b 0
    )
    
    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 SimpleLink (imagecreator) support
    if "%MODE%" EQU "cc32xx" (
    	cd /D !SCRIPT_PATH!simplelink\imagecreator\bin\
    	set EXECUTABLE=!SCRIPT_PATH!simplelink\imagecreator\bin\SLImageCreator.exe
    	set MODE=
    )
    if "%MODE%" EQU "cc31xx" (
    	cd /D !SCRIPT_PATH!simplelink\imagecreator\bin\
    	set EXECUTABLE=!SCRIPT_PATH!simplelink\imagecreator\bin\SLImageCreator.exe
    	set MODE=
    )
    
    REM mspflasher support
    if "%MODE%" EQU "mspflasher" (
    	set EXECUTABLE=!DEBUGSERVER_ROOT!drivers\MSP430Flasher.exe
    	set MODE=
    )
    
    REM ProcessorSDKSerialFlash support
    if "%MODE%" EQU "processors" (
    	cd /D !SCRIPT_PATH!processors\
    	set EXECUTABLE=!SCRIPT_PATH!processors\ProcessorSDKSerialFlash.exe
    	set MODE=
    )
    
    REM execute with given user parameters
    echo Executing the following command:
    if "!MODE!" EQU "" (
    	echo ^> !EXECUTABLE! !USEROPTIONS!
    ) else (
    	echo ^> !EXECUTABLE! !MODE! !USEROPTIONS!
    )
    echo.
    
    echo For more details and examples, please refer to the UniFlash Quick Start guide.
    echo.
    
    CMD /S /C "%EXECUTABLE% !MODE! !USEROPTIONS!"
    exit /b !errorlevel!
    

  • Hi Florian,

    There is a redundant call to dslite.exe, remove the "dslite.exe flash" from the command line. Dslite.bat should be able to take care of this by itself.

    Thanks,

    Charles