阅读:989回复:3
各位兄弟,我的电池驱动没法产生obj文件 --> 已经搞定,ok了
各位兄弟,我的电池驱动没法产生obj文件
2440+PB4.2 因为没有obj档,当然link就失败了, 这是我SOURCE的档案内容 WINCEOEM=1 TARGETNAME=battdrvr TARGETTYPE=DYNLINK DEFFILE=$(TARGETDEFNAME).def DLLENTRY=DllMain RELEASETYPE=PLATFORM TARGETLIBS= \ $(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib SOURCELIBS=$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\battdrvr_lib.lib \ INCLUDES= \ $(INCLUDES); \ $(_PUBLICROOT)\common\sdk\inc; \ $(_PUBLICROOT)\common\oak\inc; \ SOURCES= battif.c ------------------------以下是编译讯息 C:\WINCE420\PLATFORM\SMDK2440\DRIVERS\Battdrvr>BUILD Build for Windows CE (Release) (Built on Dec 17 2002 13:28:33) File names: Build.log Build.wrn Build.err Build.dat Build.con BUILD: Checking for C:\WINCE420\sdk\bin\i386\srccheck.exe. BUILD: SrcCheck exit code: 0 (dec) srcgen C:\WINCE420\PLATFORM\SMDK2440 2440XIP_LAST D:\Project\2440XI~1\WINCE420\smdk2440\cesysgen BUILD: Compile and Link for ARM. Master db name is: C:\WINCE420\PLATFORM\SMDK2440\Build.dat BUILD: Loading C:\WINCE420\PLATFORM\SMDK2440\Build.dat... BUILD: Computing Include file dependencies: BUILD: Examining c:\wince420\platform\smdk2440\drivers\battdrvr directory for files to compile. c:\wince420\platform\smdk2440\drivers\battdrvr - 1 source files (599 lines) BUILD: Compiling c:\wince420\platform\smdk2440\drivers\battdrvr directory Compiling - c:\wince420\platform\smdk2440\drivers\battdrvr\.\battif.c for ARM c:\wince420\platform\smdk2440\drivers\battdrvr\link() : error LNK1181: cannot open input file 'obj\ARMV4I\retail\battif.obj' BUILD: Compile errors: not linking c:\wince420\platform\smdk2440\drivers\battdrvr directory BUILD: Done 1 files compiled - 1 Errors |
|
沙发#
发布于:2007-09-28 16:02
开机后有个插头符号了,不过一点下去,要好几秒才会出现电源关讯息…
再试试 |
|
板凳#
发布于:2007-09-29 09:37
已经加载好了, 没有冲突的问题, 不过高低电力的判断,可能要拿实体电池再多测几次
|
|
地板#
发布于:2007-09-29 11:11
#define MAX_BATT_MAX_LEVEL 977
#define MIN_BATT_MIN_LEVEL 806 |
|