在做Ti2808的在线烧录,添加API的lib后,系统编译报错,开始找不到lib,后来把lib拷到了cgtool那边的文件夹里
cmd文件添加
/* Allocate program areas: */
Flash28_API:
{
-lFlash2808_API_V302.lib(.econst)
-lFlash2808_API_V302.lib(.text)
} LOAD = FLASHD,
RUN = RAML0,
LOAD_START(_Flash28_API_LoadStart),
LOAD_END(_Flash28_API_LoadEnd),
RUN_START(_Flash28_API_RunStart),
PAGE = 0
编译后,
[Linking...] "C:\CCStudio_v3.3\C2000\cgtools\bin\cl2000" -@"Debug.lkf"
<Linking>
>> E:\03_Bootloader\V21_2808_Basic\cmd\PV2808_FLASH.cmd, line 134: warning:
C:/CCStudio_v3.3/C2000/cgtools/lib/Flash2808_API_V302.lib(.econst) not found
>> E:\03_Bootloader\V21_2808_Basic\cmd\PV2808_FLASH.cmd, line 135: warning:
C:/CCStudio_v3.3/C2000/cgtools/lib/Flash2808_API_V302.lib(.text)
not found
>> warning: load address of uninitialized section Flash28_API ignored
>> warning: can't find a memory area named 'RAML0' on page 0 for allocation of
'Flash28_API'
>> error: can't find any memory areas for allocation of 'Flash28_API'
>> error: can't allocate 'Flash28_API' into 'RAML0' (page 0)
>> error: errors in input - ./Debug/PV12K.out not built |