dsp编译错误与解决方法.doc_第1页
dsp编译错误与解决方法.doc_第2页
dsp编译错误与解决方法.doc_第3页
dsp编译错误与解决方法.doc_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

dsp-ccs部分错误及解决 1,ERRORmultiple sections with name PAGE0 解决PAGE 0 中间有个空格隔开。 2ERROR MEMORY specification ignored 解决书写格式错误 3 ERROR:zero or missing length for memory area SPRAM SPRAM: origin=0x0060H, 解决书写格式错误 4WARNING: entry point other than _c_int00 specified 解决,在“TMS320C6000优化汇编手册”第五章“链接C/C+代 令人生厌的 multiple definition of 我把所有的全局变量写在一个global.h里然后其他文件都include 了它 于是出现了 multiple definition of . 编译器 gcc ) 后来在网上搜到了很多类似的错误大家各有各的烦心事。我的代码结构 main.cpp #include global.h WinMain(.) . file_1.cpp #include global.h . file_2.cpp #include global.h . 由于工程中的每个文件都是独立的解释的即使头文件有 #ifndef _x_h . #enfif ) 在其他文件中只要包含了global.h 就会独立的解释,然后生成每个文件生成独立的标示符。在编译器连接时,就会将工程中所有的符号整合在一起,由于文件中有重名变量,于是就出现了重复定义的错误。下面是解决方法在global.c或.cpp) 中声明变量然后建一个头文件global.h 在所有的变量声明前加上extern . 如 extern HANDLE ghEvent; 注意这儿不要有变量的初始化语句。然后在其他需要使用全局变量的 cpp文件中包含.h 文件而不要包含 .cpp 文件。编译器会为global.cpp 生成目标文件然后连接时在使用全局变量的文件中就会连接到此文件 。 在其他文件中只要包含了global.h 就会独立的解释,然后生成每个文件生成独立的标示符。在编译器连接时就会将工程中所有的符号整合在一起,由于文件中有重名变量,于是就出现了重复定义的错误。 cant open file /.obj for input 是什么原因引起的? cmd文件中有不合法的符号比如“/”等1fatal error: #error NO CHIP DEFINED 详细的出错信息:. -g -q -fre:/project_documents/dsp_project/dsp_mp3/Debug -d_DEBUG -Debug.lkf .c ., line 141: fatal error: #error NO CHIP DEFINED 1 fatal error detected in the compilation of .c. 在Build Options 的compiler里设置-dCHIP_.如果没有设置一下 2QI have started to study the book Digital Signal Processing and Applications with the C6713 and C6416 DSK (by Rulph Chassaing, 2005). I am working with a C6713DSK, using CCS 3.1. But when I try to run the first example (sine8_LED) in Rulph Chassaings book on the C6713 Device Cycle Accurate Simulator, I get the following error messages: Trouble running Target CPU: Memory Map Error: READ access by CPU to address 0x1b7c100, which is RESERVED in Hardware. Trouble running Target CPU: Memory Map Error: WRITE access by Default to address 0x1b7c100, which is RESERVED in Hardware. AGenerally this type of error means that the CCS sees this section of memory marked as either Read-Only or RESERVED (Dont read or write). CCS can be passed a virtual memory map which is a safety net for the user. If you look inside your DSKs GEL file you will see a number of instruction calls for GEL_MapAdd() with six arguments inside. Two of these arguments denote a starting address range and the length of that range. These are used to notify CCS what memory is valid (and by extension, everything not mentioned is invalid memory). Take a look inside your DSK6713.gel file (probably located in C:CCStudio_v3.1ccgel) and find where the GEL_MapAdd() instructions are located. You should see something similar to the following: GEL_MapAdd(0x01b7c000, 0, 0x00000128, 1, 1); / PLL here 0x01b7c000 is the starting address and 0x00000128 is the length of valid memory. Because 0x1b7c100 falls within this range, if your GEL file looks like this CCS should then allow accesses to this register. The GEL file may need to be updated so that the address of the PLLCSR register is included to the CCS Memory Map. I actually just noticed that the title of your post is C6713 Device Cycle Accurate Simulator but you mentioned using the DSK. Can you please clarify which you are using? If using the DSK, open the DSK6713.gel file found in C:CCStudio_v3.1ccgel and locate the setup_memory_map() function. Inside this function you should see numerous calls to GEL_MapAdd(). One of these will look similar to the one I copied in my last post. Once you find the function call that starts with the address 0x01b7c000, find out the length of this range (which should be the third argument). If this length does not cover address 0x01b7c100, modify the range to something like 0x00000128 to ensure that all of the PLL registers are included. If you are using the Cycle Accurate Simulator, I think this might be a limitation of the simulator software as it is run entirely on software as opposed to hardware. Well, you can modify the init6713sim.gel file in the same directory to add a GEL_MapAdd() from my earlier post. With the original GEL file CCS thinks that this memory range is invalid (because the simulator does not support the PLL). This would get rid of the errors regarding accessing that memory space, but because the PLL is not supported on the simulator writes to this address will not work. Ive seen the project you mentioned before, but I do not remember enough about it to know whether or not this would cause the application to fail. I think a bigger question here is why work on the simulator if you have a DSK handy? The code from that book is designed specifically to work on the DSK hardware, not on a CPU simulator. 3把调试程序的时候的一些错误提示和解决方法记录下来,有备无患 1.symbol referencing errors undefined first referenced symbol in file - - _dot_asm E:CCStudio_v3.1MyProjectsdot_mpy_6211Debugmain.obj error: symbol referencing errors 提示找不到符号,一般是出现在用c调用汇编函数的时候,比较大的可能性是汇编程序里面的标号写错了(特别是前面少了一个下划线),或者是忘记将标号定义成全局的了(在文件开头用 .global 标号的形式可以定义) 不过我碰到另外一种情况,是由于存在同名的文件. 比如说我的工程里面,有dot.c和dot.asm两个文件,分别定义了dot_c和dot_asm两个函数,这个时候就会有其中一个函数提示找不到了,经过检查,原来CCS在编译的时候,会根据文件名(不含扩展名)生成同名的目标文件(扩展名为obj),而我前面的两个文件,文件名相同而扩展名不同,那么在编译的时候,就会有一个生成的目标文件被另外一个覆盖的问题(取决于编译的顺序).知道了原因就好解决了,只要这两个文件的文件名不要相同就好了. 2.弹出一个确认框,提示TRDX target application does not match emulation protocol!Loaded program was created with an rtdx library which does not match the target device 错误原因是使用的是软件模拟(Simulator),不能模拟JTAG 解决方法:打开cdb文件,选择Input/Output - RTDX-Real-Time Data Exchange Settings右键,然后选择Properties,打开对话框,RTDX Mode的下拉列表中选择Simulator(默认值是JTAG,需要接仿真器才能用默认值) 放在这里备用吧. 各位大侠小弟以前用的是cc2000现在改用ccs2.2但是在编译的时候报错说不能打开obj文件,我查了一下在指定的obj保存目录下根本就没生成obj文件,修改一下编译的路径 在编写DSP程序时遇到一个很奇怪的问题,我的程序在CCS4.1版本下

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论