build.bat

来自「cypress fx2扩展io代码」· Batch 代码 · 共 27 行

BAT
27
字号
@echo off
REM #--------------------------------------------------------------------------
REM #	File:		BUILD.BAT
REM #	Contents:	Batch file to build development board i/o example firmware.
REM #
REM #	Copyright (c) 1997 AnchorChips, Inc. All rights reserved
REM #--------------------------------------------------------------------------

REM ## Compile C source file ##
c51 dev_io.c debug objectextend small moddp2

REM ## Link binary object with debug info ##
echo dev_io.obj, %CYUSB%\Target\Lib\Fx2\EZUSB.lib  > tmp.rsp
echo TO dev_io RAMSIZE(256)  PL(68) PW(78) CODE(4000h) XDATA(5000h)  >> tmp.rsp
bl51 @tmp.rsp

REM ## Generate intel hex image without debug info ##
oh51 dev_io HEXFILE(dev_io.hex)

REM ### Generate BIX image of binary (no debug info) ###
%CYUSB%\Bin\hex2bix dev_io.hex

REM ### usage: build -clean to remove intermediate files after build
if "%1" == "-clean" del *.lst
if "%1" == "-clean" del *.obj
if "%1" == "-clean" del *.m51

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?