build.bat
来自「c51单片机68013流传送实例。在此基础上可开发视频语音等同步传送实例」· Batch 代码 · 共 51 行
BAT
51 行
@echo off
REM #--------------------------------------------------------------------------
REM # File: BUILD.BAT
REM # Contents: Batch file to build isostrm.
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 periph.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: using a response file here for line longer than 128 chars
echo fw.obj, dscr.obj, periph.obj, > tmp.rsp
echo %CYUSB%\Target\Lib\Ezusb\USBJmpTb.obj,%CYUSB%\Target\Lib\Ezusb\EZUSB.lib >> tmp.rsp
if "%1" == "-i" echo TO isostrm RAMSIZE(256) PL(68) PW(78) CODE(80h) XDATA(1000h) >> tmp.rsp
if not "%1" == "-i" echo TO isostrm 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 isostrm HEXFILE(isostrm.hex)
REM ### Generate serial eeprom image for B2 (EZ-USB) bootload ###
if "%1" == "-i" %CYUSB%\Bin\hex2bix -i -o isostrm.iic isostrm.hex
REM ### Generate serial eeprom image for B6 (EZ-USB FX)bootload ###
if "%1" == "-i" %CYUSB%\Bin\hex2bix -i -f 0xB6 -o isostrm.b6 isostrm.hex
REM ### Generate BIX file ###
REM %CYUSB%\Bin\hex2bix isostrm.hex
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 + =
减小字号Ctrl + -
显示快捷键?