📄 build.bat
字号:
@echo off
REM #--------------------------------------------------------------------------
REM # File: BUILD.BAT
REM # Contents: Batch file to build firmware frameworks.
REM #
REM # Copyright (c) 2000 Cypress Semiconductor All rights reserved
REM #--------------------------------------------------------------------------
REM # command line switches
REM # ---------------------
REM # -clean delete temporary files
REM # -i Locate code in internal RAM. Also builds EEPROM images. Requires full
REM # version of Keil Tools
REM ### Compile user Gpif1eral code ###
REM ### Note: This code does not generate interrupt vectors ###
c51 Gpif1.c db oe code small moddp2 noiv DF(ALLOCATE_EXTERN)
REM ### Assemble descriptor table ###
REM a51 dscr.a51 errorprint debug
REM ### Link object code (includes debug info) ###
REM ### Note: XDATA and CODE must not overlap ###
REM ### Note: using a response file here for line longer than 128 chars
echo Gpif1.obj > tmp.rsp
if "%1" == "-i" echo TO Gpif1 RAMSIZE(256) PL(68) PW(78) CODE(80h) XDATA(1000h) >> tmp.rsp
if not "%1" == "-i" echo TO Gpif1 RAMSIZE(256) PL(68) PW(78) CODE(4000h) XDATA(5000h) >> tmp.rsp
bl51 @tmp.rsp
REM ### Generate intel hex image of binary (no debug info) ###
oh51 Gpif1 HEXFILE(Gpif1.hex)
REM ### Generate serial eeprom image for B2 (EZ-USB) bootload ###
if "%1" == "-i" %CYUSB%\Util\Hex2bix\Release\hex2bix -i -o Gpif1.iic Gpif1.hex
REM ### Generate serial eeprom image for B6 (EZ-USB FX)bootload ###
if "%1" == "-i" %CYUSB%\Util\Hex2bix\Release\hex2bix -i -f 0xB6 -o Gpif1.b6 Gpif1.hex
echo WARNING: Frameworks must relocate descriptors to internal mem with 4K Compiler.
REM ### usage: build -clean to remove intermediate files after build
if "%1" == "-clean" del tmp.rsp
if "%1" == "-clean" del *.lst
if "%1" == "-clean" del *.obj
if "%1" == "-clean" del *.m51
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -