Commit 63396c91 authored by axel.maurer's avatar axel.maurer
Browse files

function 14 and 15 implemented

parent d640e1a5
This diff is collapsed.
......@@ -15,6 +15,9 @@ goto :init
echo. -v, --version shows the version
echo. -e, --verbose shows detailed output
echo. -d, --debug debug messages on
echo. -s, --secure set secure mode
echo. -m, --miniterm start miniterm for debug
echo. -n, --no-load do not load firmware
echo. -ek, --english_keyboard set keyboard emulation mode in reader mode to english (default is german)
echo. -r, --reader_action "action" set the reader action
echo. This option is mandatory in reader mode
......@@ -80,6 +83,14 @@ goto :init
if /i "%~1"=="-s" set "SecureOption=yes" & shift & goto :parse
if /i "%~1"=="--secure" set "SecureOption=yes" & shift & goto :parse
if /i "%~1"=="-m" set "MinitermOption=yes" & shift & goto :parse
if /i "%~1"=="--miniterm" set "MinitermOption=yes" & shift & goto :parse
if /i "%~1"=="-n" set "NoloadOption=yes" & shift & goto :parse
if /i "%~1"=="--no-load" set "NoloadOption=yes" & shift & goto :parse
if /i "%~1"=="--no-secure" set "NoSecureOption=yes" & shift & goto :parse
if /i "%~1"=="-r" set "ReaderAction=%~2" & shift & shift & goto :parse
if /i "%~1"=="--reader_action" set "ReaderAction=%~2" & shift & shift & goto :parse
......@@ -106,6 +117,9 @@ goto :init
if defined SecureOption (
set SECURE= -DSECURE
)
if defined NoSecureOption (
set SECURE= -DNO_SECURE
)
if defined ReaderAction (
set READER_ACTION= -DREADER_ACTION=%ReaderAction%
)
......@@ -133,9 +147,13 @@ goto :init
"%ELATEC_DIR%\Tools\makeapp" -tTWN4 -nTWN4 "-i%ELATEC_DIR%\%FIRMWARE_PATH%" "-hApp_KITC100_%PROJECT%.hex" "-o%BIX_FILE%"
if errorlevel 1 goto end
del "App_KITC100_%PROJECT%. elf" "App_KITC100_%PROJECT%.lst" "App_KITC100_%PROJECT%.map" "App_KITC100_%PROJECT%.hex" "TWN4_%DEV_VERSION%.bix"
"%ELATEC_DIR%\Tools\flash" USB %BIX_FILE%
@REM goto end
timeout /T 2
python -m serial.tools.miniterm -e --exit-char 25 com9
if not defined NoloadOption (
"%ELATEC_DIR%\Tools\flash" USB %BIX_FILE%
)
if defined MinitermOption (
timeout /T 2
python -m serial.tools.miniterm -e --exit-char 25 com9
)
:end
exit /B
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment