Other Parts Discussed in Thread: UNIFLASH,
Tool/software:
Hi expert,
My customer successfully program the tms320f28374s with uniflash, he use CLI to download a program package from uniflash that contains some of the configuration files and a batch file for programing. But the batch file runs without success, so he can't grab log information. I attach the batch file, please help analysis the root cause, thank you.
@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/tms320f28374s.ccxml -l user_files/settings/generated.ufsettings -s VerifyAfterProgramLoad="No verification" -e -f -v "user_files/images/SN10HTU11BOT1_SN10HTU111_90120260_V000B001D020.out" 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 https://software-dl.ti.com/ccs/esd/uniflash/docs/latest_qsguide.html#command-line-interface echo. CMD /S /C "%EXECUTABLE% !MODE! !USEROPTIONS! !ADDITIONALS!" exit /b !errorlevel!