Commit 6707c8ad authored by axel.maurer's avatar axel.maurer
Browse files

Initial Version

parents
This diff is collapsed.
@echo off
rem Das Verzeichnis sollte den gleichen Namen haben, wie die Source-Datei
rem Falls nicht muss das in dieser Datei angepasst werden
set PROJECT_DIR=KIT-Card
set PROJECT_SOURCE=KIT-Card
set PROJECT=KIT-Card_Reader
rem Development KIT Version
set DEV_VERSION=401b
set ELATEC_DIR=C:\Users\xy0007\Documents\KIT-Card\Elatec\TWN4DevPack%DEV_VERSION%
set BIX_FILE=TWN4_CCx%DEV_VERSION%_KIT100_%PROJECT%.bix
set FIRMWARE_PATH=Firmware\TWN4_xKx401_STD204_Multi_Keyboard_Standard.bix
@REM set FIRMWARE_PATH=Firmware\TWN4_xCx401_STD204_Multi_CDC_Standard.bix
rem eventuell zu setzende Compiler Switches. Es können auch mehrere -D gesetzt werden
@REM set DEBUG= -DDEBUG
set READER_ACTION= -DREADER_ACTION=70
@REM set SECURE= -DSECURE
c:
cd %ELATEC_DIR%\Apps\%PROJECT_DIR%
"%ELATEC_DIR%\Tools\Yagarto-20110328\bin\arm-none-eabi-gcc" -std=c99 -mcpu=cortex-m0 -Os -ffunction-sections -gdwarf-2 -mthumb -fomit-frame-pointer -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms="App_KITC100_%PROJECT%.lst" -DAPPCHARS=KITC -DVERSION=0x100 -DAPPEXTCONFIG=0 %DEBUG% %SECURE% %READER_ACTION% -I. -I"%ELATEC_DIR%\Tools\sys" "%ELATEC_DIR%\Tools\sys\twn4.crt.c" "%PROJECT_SOURCE%.c" -nostartfiles -T"%ELATEC_DIR%\Tools\sys\app.ld" -Wl,--gc-sections,-e,AppHeader,--no-print-gc-sections,-Map="App_KITC100_%PROJECT%.map",--cref,--no-warn-mismatch "%ELATEC_DIR%\Tools\sys\libapp.a" -lc -o "App_KITC100_%PROJECT%.elf"
if errorlevel 1 goto ende
copy "%ELATEC_DIR%\%FIRMWARE_PATH%" TWN4_%DEV_VERSION%.bix
"%ELATEC_DIR%\Tools\Yagarto-20110328\bin\arm-none-eabi-objcopy" -O ihex "App_KITC100_%PROJECT%.elf" "App_KITC100_%PROJECT%.hex"
if errorlevel 1 goto ende
"%ELATEC_DIR%\Tools\makeapp" -tTWN4 -nTWN4 "-iTWN4_%DEV_VERSION%.bix" "-hApp_KITC100_%PROJECT%.hex" "-o%BIX_FILE%"
if errorlevel 1 goto ende
del "App_KITC100_%PROJECT%.elf" "App_KITC100_%PROJECT%.lst" "App_KITC100_%PROJECT%.map" "App_KITC100_%PROJECT%.hex" "TWN4_%DEV_VERSION%.bix"
taskkill /IM coolterm.exe /F
"%ELATEC_DIR%\Tools\flash" USB %BIX_FILE%
exit
@echo off
rem Das Verzeichnis sollte den gleichen Namen haben, wie die Source-Datei
rem Falls nicht muss das in dieser Datei angepasst werden
set PROJECT_DIR=KIT-Card
set PROJECT_SOURCE=KIT-Card
set PROJECT=KIT-Card_Serial
rem Development KIT Version
set DEV_VERSION=401b
set ELATEC_DIR=C:\Users\xy0007\Documents\KIT-Card\Elatec\TWN4DevPack%DEV_VERSION%
set BIX_FILE=TWN4_CCx%DEV_VERSION%_KIT100_%PROJECT%.bix
set FIRMWARE_PATH=Firmware\TWN4_xCx401_STD204_Multi_CDC_Standard.bix
rem eventuell zu setzende Compiler Switches. Es können auch mehrere -D gesetzt werden
set DEBUG= -DDEBUG
set READER_ACTION= -DREADER_ACTION=1
rem set SECURE= -DSECURE
c:
cd %ELATEC_DIR%\Apps\%PROJECT_DIR%
"%ELATEC_DIR%\Tools\Yagarto-20110328\bin\arm-none-eabi-gcc" -std=c99 -mcpu=cortex-m0 -Os -ffunction-sections -gdwarf-2 -mthumb -fomit-frame-pointer -Wall -Wstrict-prototypes -fverbose-asm -Wa,-ahlms="App_KITC100_%PROJECT%.lst" -DAPPCHARS=KITC -DVERSION=0x100 -DAPPEXTCONFIG=0 %DEBUG% %SECURE% %READER_ACTION% -I. -I"%ELATEC_DIR%\Tools\sys" "%ELATEC_DIR%\Tools\sys\twn4.crt.c" "%PROJECT_SOURCE%.c" -nostartfiles -T"%ELATEC_DIR%\Tools\sys\app.ld" -Wl,--gc-sections,-e,AppHeader,--no-print-gc-sections,-Map="App_KITC100_%PROJECT%.map",--cref,--no-warn-mismatch "%ELATEC_DIR%\Tools\sys\libapp.a" -lc -o "App_KITC100_%PROJECT%.elf"
if errorlevel 1 goto ende
copy "%ELATEC_DIR%\%FIRMWARE_PATH%" TWN4_%DEV_VERSION%.bix
"%ELATEC_DIR%\Tools\Yagarto-20110328\bin\arm-none-eabi-objcopy" -O ihex "App_KITC100_%PROJECT%.elf" "App_KITC100_%PROJECT%.hex"
if errorlevel 1 goto ende
"%ELATEC_DIR%\Tools\makeapp" -tTWN4 -nTWN4 "-iTWN4_%DEV_VERSION%.bix" "-hApp_KITC100_%PROJECT%.hex" "-o%BIX_FILE%"
if errorlevel 1 goto ende
del "App_KITC100_%PROJECT%.elf" "App_KITC100_%PROJECT%.lst" "App_KITC100_%PROJECT%.map" "App_KITC100_%PROJECT%.hex" "TWN4_%DEV_VERSION%.bix"
taskkill /IM coolterm.exe /F
"%ELATEC_DIR%\Tools\flash" USB %BIX_FILE%
rem exit
timeout /T 2
python .\reader_test.py
:ende
Supports Markdown
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