?? build.bat
字號(hào):
@echo off
REM #--------------------------------------------------------------------------
REM # File: BUILD.BAT
REM # Contents: Batch file to build ep_pair.
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 FrameWorks code ###
c51 fw.c debug objectextend code small moddp2
REM ### Compile user peripheral code ###
REM ### Note: This code does not generate interrupt vectors ###
c51 ep_pair.c db oe code small moddp2 noiv
REM ### Assemble descriptor table ###
a51 dscr.a51 errorprint debug
REM ### Link object code (includes debug info) ###
REM ### Note: XDATA and CODE must not overlap ###
REM ### Note: CODE should be located after 0x6a (end of max vector table)
REM ### Note: XDATA was moved from 0x800 (really close to code) to 0x1000
REM ### Note: If modifications to code expand it past 0x1000, move XDATA
REM ### Note: we are using response file here for line longer than 128 chars
echo fw.obj, dscr.obj, ep_pair.obj, > tmp.rsp
echo %CYUSB%\Target\lib\Ezusb\USBJmpTb.obj,%CYUSB%\Target\lib\Ezusb\EZUSB.lib >> tmp.rsp
if "%1" == "-i" echo TO ep_pair RAMSIZE(256) PL(68) PW(78) CODE(80h) XDATA(1000h) >> tmp.rsp
if not "%1" == "-i" echo TO ep_pair 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 ep_pair HEXFILE(ep_pair.hex)
REM ### Generate serial eeprom image for B2 (EZ-USB) bootload ###
if "%1" == "-i" %CYUSB%\Bin\hex2bix -i -o ep_pair.iic ep_pair.hex
REM ### Generate serial eeprom image for B6 (EZ-USB FX)bootload ###
if "%1" == "-i" %CYUSB%\Bin\hex2bix -i -f 0xB6 -o ep_pair.b6 ep_pair.hex
echo WARNING: Descriptors will be relocated to internal memory if using 4K compiler.
if "%1" == "-clean" del tmp.rsp
if "%1" == "-clean" del *.lst
if "%1" == "-clean" del *.obj
if "%1" == "-clean" del *.m51
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -