Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hello, I'm new to Uniflash and I'm working on automate a script to flash the Hercules TMS570LC43xx. The following shell script works in Linux:
**** In uniflash.sh, call ${UNIFLASH_BASE}/ccs_base/scripting/bin/dss.sh ${UNIFLASH_PATH}/uniFlash_main.js "$@" ****
./uniflash.sh \
-ccxml $1 \
-setOptions FlashRangeToggle=true FlashRangeAddr=$3-$4 \
-programBin $2 \
$3 \
-targetOp reset
I converted that to windows .bat file:
CALL %UNIFLASH_BASE%\ccs_base\scripting\bin\dss.bat %UNIFLASH_PATH%\uniFlash_main.js^
-ccxml %ccmlFile%^
-setOptions "FlashRangeToggle=true" "FlashRangeAddr=%flashRange%"^
-programBin %binFile%^
%startAddr%^
-targetOp reset
However it would not work with 2 options for Operation: -programBin and -targetOp in a sequence. Only one of these option would work. According to the README file:
"In contrast, "-operation", "-program", "-programBin", "verify", "verifyBin" and "-export" are chainable commands; which means that the user can specify multiple operations, programs and export commands, and each of these commands will be perform in order. "
So does that mean -targetOp is not chainable or am I messed up something with the parameter? Why is it possible in Linux .sh scripts but not in windows .bat? I put some print statements in the uniflash_main.js and it does not take the last 2 arguments from the .bat file.
<arguments length: 8>
<arguments list: -ccxml,hercules_lms570lc43xx_xds200.ccxml,-setOptions,FlashRangeToggle=true,FlashRangeAddr=0x0-0x3FFFF,-programBin,Bootloader_1_5_0-09dea6d.bin,0x0>
Any advice would be appreciated. Thank you in advance!