编译与调试

上传人:灯火****19 文档编号:165498496 上传时间:2021-02-02 格式:DOC 页数:2 大小:16KB
返回 下载 相关 举报
编译与调试_第1页
第1页 / 共2页
编译与调试_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《编译与调试》由会员分享,可在线阅读,更多相关《编译与调试(2页珍藏版)》请在金锄头文库上搜索。

1、(1),error: error reading file C:CCStudio_v3.3MyProjectsadcc_build_Debug.log: file too short Compilation failure(2),undefined first referenced symbol in file- -FS$MPY C:CCStudio_v3.3MyProjectscputimerDebugDSP28_CpuTimers.objFS$TOL C:CCStudio_v3.3MyProjectscputimerDebugDSP28_CpuTimers.obj error: symbo

2、l referencing errors - ./Debug/cputimer.out not built解决:将rts2800.lib项目连接的库改成rts2800_ml.lib(3),Cant Run Target CPU: Cant write to data memory 0x950, check memory config -2184 Cant Run Target CPU: Cant write to data memory 0x951, check memory config -2184 Cant Run Target CPU: Cant write to data memory

3、 0x952, check memory config -2184 Cant Run Target CPU: Cant write to data memory 0x953, check memory config -2184 Cant Run Target CPU: Cant write to data memory 0x954, check memory config -2184解决:/ On TMX samples, to get the best performance of on chip RAM blocks M0/M1/L0/L1/H0 internal/ control reg

4、isters bit have to be enabled. The bits are in Device emulation registers. /* DevEmuRegs.M0RAMDFT = 0x0300; DevEmuRegs.M1RAMDFT = 0x0300; DevEmuRegs.L0RAMDFT = 0x0300; DevEmuRegs.L1RAMDFT = 0x0300; DevEmuRegs.H0RAMDFT = 0x0300; */直接删掉就行,那段代码是测试版为了提高性能的代码,到正式版的时候地址被保留,再加上的话就出错了(4),编译错误declaration may

5、 not appear after executable statement in block系统初始化前没有进行变量的定义如下例:InitSysCtrl(); unsigned int temp=0x0001; unsigned int i,j;(5),编译警告:last line of file ends without a newline解决:将光标移到提示告警的代码最后一行(有代码的那一行),然后按住del键,直到确定下面没有回车行,最后回车一下或多下即可。(6), warning: creating .stack section with default size of 400 (h

6、ex) words. Use -stack option to change the default size.解决:他是说,创建堆栈段使用与设置400个字,并建议在“堆栈操作”中改变这个与设置。这时,需要进行如下修改就可通过:project-build opration-Linker,在Stacte Size(-stact):填入800或者其他小于1024的数值。 再编译就不会报警了!(7),编译警告:creating output section .switch without SECTIONS specification解决:未添加.switch的段的分配(8)Zero.c, line 45: remark: function declared implicitly解决:这是由于没有声明函数原型造成的。将函数的声明添加到“DSP281x_GlobalPrototypes.h”

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号