CCS3.3 编译链接系列错误

错误1:
[Linking…] “C:\CCStudio_v3.3\C5500\cgtools\bin\cl55” -@“Debug.lkf”

undefined first referenced

symbol in file

I2C_getConfig C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
MCBSP_write16 C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
CSL5509_LIB C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
MCBSP_open C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
MCBSP_read16 C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
I2C_write C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
MCBSP_start C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
MCBSP_config C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
CSL_init C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
PLL_config C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
MCBSP_getConfig C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj
I2C_setup C:\CCStudio_v3.3\MyProjects\EX_BIOS\EX58_task\Debug\tsk.obj

error: symbol referencing errors - './Debug/tsk.out' not built

Compilation failure

Build Complete,
2 Errors, 0 Warnings, 0 Remarks.

解决方法:缺少链接库,添加合适链接库文件即可
方案一、直接将所需要的库文件加到项目工程中,譬如:鼠标右键,点击“Add Files to Project…”,选中:C:\CCStudio_v3.3\C5500\cgtools\lib\rts55x.lib;
方案二、修改链接器的链接参数即可;譬如:鼠标右键,点击“Build Options…”,选Linker Tab, Category中选Libraries, 设置Inc. Libraries (-l): 为 rts55x.lib;

错误2:fatal error: #error NO CHIP DEFINED
解决方法:进入csl_chiphal.h头文件中发现由于未定义任何芯片类型导致error
在build option 中的processor中添加芯片类型即可
如下图所示:
在此输入图片描述

你可能感兴趣的:(undefined,defined,symbol,Chip,No,CCS3.3)