在做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.3C2000cgtoolsincl2000" -@"Debug.lkf"
<Linking>
>> E: 3_BootloaderV21_2808_BasiccmdPV2808_FLASH.cmd, line 134: warning:
C:/CCStudio_v3.3/C2000/cgtools/lib/Flash2808_API_V302.lib(.econst) not found
>> E: 3_BootloaderV21_2808_BasiccmdPV2808_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
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
这个warning要管吗?
[Linking...] "C:CCStudio_v3.3C2000cgtoolsincl2000" -@"Debug.lkf"
<Linking>
>> E: 3_BootloaderV21_2808_BasiccmdPV2808_FLASH.cmd, line 134: warning:
C:/CCStudio_v3.3/C2000/cgtools/lib/Flash2808_API_V302.lib(.econst) not found
>> E: 3_BootloaderV21_2808_BasiccmdPV2808_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
Build Complete,
0 Errors, 3 Warnings, 0 Remarks.
你看看cmd中 应该给警告提示的这些段没有分配空间
应该关系不大 CCS会给自动分配必要段的空间
一周热门 更多>