18 lines
635 B
Batchfile
18 lines
635 B
Batchfile
@echo off
|
|
rem CCS post-build step: converts the OUT image to bootable SCI8 HEX and BIN.
|
|
rem %1 is hex2000, %2 is the linked OUT file, %3 is the Bin artifact directory.
|
|
rem Propagates ERRORLEVEL after every critical conversion command.
|
|
setlocal
|
|
|
|
set "HEX_TOOL=%~1"
|
|
set "OUT_FILE=%~2"
|
|
set "BIN_DIR=%~3"
|
|
|
|
if not exist "%BIN_DIR%" mkdir "%BIN_DIR%"
|
|
|
|
"%HEX_TOOL%" "%OUT_FILE%" -boot -sci8 -map "%BIN_DIR%\UKSSTMS320F28335.map" -o "%BIN_DIR%\UKSSTMS320F28335.hex" -i
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
|
|
"%HEX_TOOL%" "%OUT_FILE%" -boot -sci8 -map "%BIN_DIR%\UKSSTMS320F28335.map" -o "%BIN_DIR%\UKSSTMS320F28335.bin" -b
|
|
exit /b %errorlevel%
|