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.

TMDSEMU110-U: Can we detect wrong between 2 ICs (F280040 and F280048) by Check sum in Uniflash?

Part Number: TMDSEMU110-U
Other Parts Discussed in Thread: UNIFLASH,

Can we use command line in Uniflash for check sum firmware version?

1. We have problem with wrong download firmware between F280040 and F280048(We use TMDSEMU110-U each ICs).

2. Can we use command line (dslite.bat) for verify check sum on each ICs?

3. Or did you have any solution for verify correct firmware on each ICs?

Thank you in advanced.

Regards,

Thanapol S.

  • Hi Thanapol,

    Our Uniflash team will help you on usage of command-line for checksum.

    Regards,

    Rajeshwary

  • Now i already have solution for verify each ICs.

    My concept is bring the Checksum result compare with Original Checksum after downloaded.

    This code for generate Checksum result on dslite.bat.

    @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=flash
    set EXECUTABLE="!DEBUGSERVER_ROOT!bin\DSLite"
    
    set GENERATED_COMMAND=-c user_files/configs/XXX.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f -v "user_files/images/XXX.out" 
    REM added this command
    set ADDITIONALS=-a CalculateChecksum
    
    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=
    )
    
    CMD /S /C "%EXECUTABLE% !MODE! !USEROPTIONS! !ADDITIONALS!"
    exit /b !errorlevel!

    This code for call the dslite.bat and check status.

    @ECHO OFF
    
    set EXECUTABLE="Config patch"
    set FW_FILE="Images patch"
    set Core_Setting="settings path"
    set TestStatus=%~dp0Teststatus.txt
    
    Echo Start > %TestStatus%
    call %EXECUTABLE% -c %CONFIG_FILE% -l %Core_Setting% -e -f -v %FW_FILE%
    (
    call %EXECUTABLE% -c %CONFIG_FILE% -l %Core_Setting%
    )> %~dp0ChecksumResult.txt
    if %errorlevel%==0 Goto Passed
    Goto Failed
    
    :Failed
    Echo Status: Failed
    Echo FAIL > %TestStatus%
    
    exit /b 0
    
    :Passed
    Echo Status:Passed
    Echo PASS > %TestStatus%
    
    exit /b 0
    

    This code for compare between Original checksum and result checksum

    Thank everyone for support.

    BR,

    Thanapol S.