收藏 分享(赏)

CCS调试常见报错.doc

上传人:精品资料 文档编号:9447501 上传时间:2019-08-08 格式:DOC 页数:8 大小:637.55KB
下载 相关 举报
CCS调试常见报错.doc_第1页
第1页 / 共8页
CCS调试常见报错.doc_第2页
第2页 / 共8页
CCS调试常见报错.doc_第3页
第3页 / 共8页
CCS调试常见报错.doc_第4页
第4页 / 共8页
CCS调试常见报错.doc_第5页
第5页 / 共8页
点击查看更多>>
资源描述

1、1.“D:/Program Files/CCS/C5500/csl/include/csl_chiphal.h“, line 201: fatal error: #error NO CHIP DEFINED ?芯片型号没有确定解决方法:Build option complier 添加: -d“CHIP_5509“ ml2. Error: WARNING: PAGE BOUNDARY CROSSING DETECTED AT PROGRAM COUNTER 0x1797 ?3. undefined first referencedsymbol in file- -_mpyd D:csPROJEC

2、TDSP5509oksinewaveDebugsine.obj_sin D:csPROJECTDSP5509oksinewaveDebugsine.obj_puts D:csPROJECTDSP5509oksinewaveDebugsine.obj_divd D:csPROJECTDSP5509oksinewaveDebugsine.obj_fltid D:csPROJECTDSP5509oksinewaveDebugsine.obj error: symbol referencing errors - ./Debug/sinewave.out not built ?解决方法:变量为定义。添加

3、运行时库 rts55.lib4.“main.c“, line 12: fatal error: could not open source file “evmdm6437.h“ ?当工程转移时,有的 .h 或者 .c 文件的路径变了,编译时报错。解决方法:将文件 evmdm6437.h 直接复制后放到工程文件所在的文件夹。5. “sram_test.c“, line 73: error: argument of type “unsigned short *“ is incompatible with parameter of type “unsigned int *“ ?emif_read32

4、( base, size ,解决方法:错误的将 EMIF_DATA 定义为一个 16 位的数组 Uint16 EMIF_DATA42048;6. error: argument of type “unsigned short (*)2048“ is incompatible with parameter of type “unsigned short *“ ?Uint16 DATA_EMIF42048;emif_read32( base, size ,DATA_EMIF0);当 DATA_EMIF0 换成 DATA_EMIF 就报错,7. Heaps are enabled, but the

5、segment for DSP/BIOS Objects (MEM.BIOSOBJSEG) is not set correctly. Please create a heap in one of your data segments and set MEM.BIOSOBJSEG to it. ?我用 dsp bios 生成程序在保存时出现一下错误,网上搜索有人也遇到此问题,经多方探索找到解决方案,先公布如下,希望对后学者有帮助。我用的是 TMS320DM6437 错误如上:解决方法:右键点击 MEM-Memory section manager-properties ,你可以看到 segme

6、nt for DSP/BIOS Objects 和 segment for malloc()后跟的选项只有 MEM_NULL,问题就出在这里,你可以将你所定义的 MEM 下的任一选项:SRAM ,MSARAM 等等,拿 MSARAM 为例,右键 MSRAM-properties 将“enter a user defined heap identifier lable “打勾,在“heap size“中输入大小,将“enter a user defined heap identifier label “打勾,在 “heap identifier label “中输入任意堆栈名。点“应用” 、 “

7、确定” 。补充下,修改完 MSARAM 后,右键点击 MEM-Memory section manager-properties ,你可以看到 segment for DSP/BIOS Objects 和 segment for malloc()后跟的选项改为 MSARAM 即可。8. linker.cmd: error: system error, cant open file /.obj for input: No suchfile or directory Compilation failure ?在 link.cmd 文件中去掉 -l rts64plus.lib 就报上面错误。9. e

8、rror: cant allocate .text, size 00002ca0 (page 0) in IRAM (avail: 000001c0) ?IRAM 中数据过大,无法再分配数据内存。可以查看 debug 里的.map 文件查看十分代码和数据所在内存过大。解决方法:将数据定义到 DDR 中,使用一下语句:#pragma DATA_SECTION(input_mti_imag,“.DDR“); /将 input_mti_imag 数组分配到 DDR 中。10. “BIOScfg.s62“, ERROR! at line 365: * USER ERROR * - Project bu

9、ild options do not match Global configuration settings. Compiler options do not specify -mv64+, but configuration is forC64x+ ? 添加 bios 后,及报错。由于 Project build options 与 Global configuration settings 设置不匹配。解决方法:Project build optionsCompilerBasicTarget Version 改成c64x+与 BIOSGlobal configuration setting

10、s(右击)GeneralTarget Board Name 一样。11. 主板无法连接。Error connecting to the target:Error 0x80002240/-233Fatal Error during: Initialization, OCS, Control, This error was generated by TIs USCIF driver.SC_ERR_PATH_BROKEN The JTAG IR and DR scan-paths cannot circulate bits, they may be broken.An attempt to scan

11、 the JTAG scan-path has failed.The targets JTAG scan-path appears to be brokenwith a stuck-at-ones or stuck-at-zero fault.Board Name: DM6437 XDS560 EmulatorCpu Name: ICEPICK_C_0Abort: Close Code Composer Studio.Retry: Try to connect to the target again.Cancel: Remain disconnected from the targetDiag

12、nostic: Run diagnostic utility.解决方法:12. Power Failure on Target CPU Failed to remove the debug state from the target before disconnecting. There may still be breakpoint opcodes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before

13、 you continue debugging. DSP 设置段点读数据,就掉。解决方法:FPGA 在运行过程中一直占用 EMIF 总线未释放,使得 DSP 读取数据时冲突,导致掉线。只要在 FPGA 代码中 EMIF 输出增加一变量。工作是作为输出平时为高阻。 这样就不会因为读数据或初始化 EMIF 就掉线了。 13.在 dm6437 评估板上用 ndk 包调试网口( emac)的时候,每次加载例程,都会报错(见下图) ,单独编译是没有问题的。如果在加载这个例程之前先加载一个评估板自带的完好例程,再运行初始化函数 EVMDM6437_init( );,接着就可以加载 ndk 中的例程到评估板

14、中去了,编译好 client.pjt 工程后,下载.out 文件时出现以下错误。查找 .MAP 文件没有发现内存溢出的情况。在先运行另一个工程的 EVMDM6437_init( ); 后就不报上面的错误。 但直接加入 EVMDM6437_init( ) 到主函数还是报错。解决方法:在评估板的提供商官网上下载了 DM6437EVM 配套资料,里面包含有调试所需的 GEL 文件。直接 load 下的 GEL 文件,再 load 工程文件,还是不行。后来在熊老师的帮助调试下,解决了这个问题。具体操作:发现是 gel 文件里面只要单独执行Setup_PLL2_DDR_162_MHz_OscIn( );

15、 Setup_DDR_162_MHz( ); 这两个函数,再 load 工程就可以。初步怀疑是 gel 文件在初始化了 DDR,后又恢复了系统以前的设置,就相当于初始化。具体的还是看调试验证。不过问题已也算解决了。GEL 文件 load 之后,执行时 CCS 的状态显示图:14. 新加工板板无法下载程序。PC 通过 XDS560 连接 DSP,向 DSP 下载.OUT 文件时报下图错误。电压算正常:dsp 核电压 1.2v;dspIO 电压 3.24v;DDR2 供电电压 1.74v。上电顺序也是对的,先核上电,在 IO 上电。发现有可能是大小端有问题,连上之后 CCStudio:Parall

16、 Debug Manager 显示的是 big endian,应该是 litter endian。可是在 dm6437datasheet 上没有发现对应的管脚,但是发现了dm6437 只支持小端模式(Supports Little Endian Mode Only) ,那就是说没有这个款芯片没有所谓的设置大小端的管脚。解决方法:大小端的问题,刚刚试了一下网上说的一个方法:上电以后,复位了一下,再加载.OUT 文件就没有报错。CCS manager 显示的也变成 litter endian 了。老实说我还是不晓得为什么会这样。类似问题的帖子:http:/ 加工板新板使用调试 emac 口是自动

17、running我在 load .out 文件 CCS 就自动 running,这是怎么回事?ccs3.3optioncustomizego main automatic 设置了。用的片子是 DM6437,调试的是网口,工程用到了 DDR2。工程编译的没有问题。16. 加工板旧版连接报错。Error connecting to the target:Error 0x80000240/-1146Fatal Error during: Initialization, OCS, Invalid data was scanned by the emulation controller.Verify th

18、e board setup to make sure the scan chain is properlydefined.If the setup is correct, then RESET EMULATOR. This will disconnect each target from the emulator. The targets should then be power cycledor hard reset followed by an emureset and reconnect to each target.Board Name: DM6437 XDS560 EmulatorC

19、pu Name: C6400PLUS_0Abort: Close Code Composer Studio.Retry: Try to connect to the target again.Cancel: Remain disconnected from the targetDiagnostic: Run diagnostic utility.17.将 MATLAB 生成的.DAT 文件导入到 CCS 中的时候,显示的数据有问题,每个 16 位的有效数据中间都有一个 16 位的 0x0000解决方法:在 matlab 中将两个 16 位的数据拼成 32 位的数据保存成.DAT,再导入 CCS。DAT 文件 32 位数据图:CCS 导入 DAT 文件正确数据图:18. CCS5.3 为什么不能在.H 中声明函数?

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报