对于不用os的c6748dsp,在基于starterware的基础上,怎么添加类似于C2000系列的系统自带的头文件、库文件、CMD文件以及源文件?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
对于不用os的c6748dsp,在基于starterware的基础上,怎么添加类似于C2000系列的系统自带的头文件、库文件、CMD文件以及源文件?
Titan 您好!请问
C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\drivers\Debug 下的drivers.lib
以及
C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\system_config\Debug 下的system_config.lib
以及
C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\lcdkC6748\platform\Debug下的platform.lib的作用是什么,里面封装了哪些函数?那个文档里面有比较详细的解释?谢谢!
使用StarterWare的GPIO函数需要添加“gpio.c”或者“C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\drivers\Debug\drivers.lib”,
那么说明C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\drivers\Debug\drivers.lib”封装了gpio,c的函数,那我想问一下,C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\drivers\Debug\drivers.lib” 这个.lib文件中一共封装了哪些函数?在哪里可以查到?谢谢!
你好,C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\drivers\Debug 下的drivers.lib里面封装的函数,即是在\C6748_StarterWare_1_20_03_03\drivers目录下面C文件中的源函数。
C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\system_config\Debug 下的system_config.lib里面封装的函数,即是在\C6748_StarterWare_1_20_03_03\system_config\c674x目录下面C文件中的源函数。
C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\lcdkC6748\platform\Debug下的platform.lib里面封装的函数,即是在\C6748_StarterWare_1_20_03_03\platform目录下面C文件中的源函数。
关于StarterWare中库的详细介绍,除了\C6748_StarterWare_1_20_03_03\docs路径下的资料外,可以看一下这里的链接:
http://processors.wiki.ti.com/index.php/StarterWare_01.20.01.01_User_Guide
http://processors.wiki.ti.com/index.php/StarterWare_Getting_Started_01.20.XX.XX
您好,使用mathlib,应该添加头文件路径为:
\mathlib_c674x_3_0_1_1\inc
这个里面的头文件直接,包含了如上所述的所有函数头文件,如下:
#include <ti/mathlib/src/atan2dp/atan2dp.h>
#include <ti/mathlib/src/atan2sp/atan2sp.h>
#include <ti/mathlib/src/atandp/atandp.h>
#include <ti/mathlib/src/atansp/atansp.h>
#include <ti/mathlib/src/cosdp/cosdp.h>
#include <ti/mathlib/src/cossp/cossp.h>
......
首先,头文件 添加C:\mathlib_c674x_3_1_0_0\packages\ti\mathlib文件到工程的头文件路径,目的是包含mathlib.h这个文件。
其次,库文件 添加C:\mathlib_c674x_3_1_0_0\packages\ti\mathlib\lib路径下的库文件到工程的库文件路径:mathlib.lib
这样你的工程就包含了mathlib的头文件路径和库文件路径,就可以调用mathlib库中的函数了。
不需要使用mathlib的源文件,如C:\ti\mathlib_c674x_3_1_0_0\packages\ti\mathlib\src\acosdp的C文件等。
您好:C:\ti\mathlib_c674x_3_1_0_0\packages\ti\mathlib\src\acosdp的C文件等是不是例程? 我按照您所说的
首先,头文件 添加C:\mathlib_c674x_3_1_0_0\packages\ti\mathlib文件到工程的头文件路径,目的是包含mathlib.h这个文件。
其次,库文件 添加C:\mathlib_c674x_3_1_0_0\packages\ti\mathlib\lib路径下的库文件到工程的库���件路径:mathlib.lib
然后将C:\ti\mathlib_c674x_3_1_0_0\packages\ti\mathlib\src\acosdp_d(注意是acosdp_d哦)的C文件,作为main.c,然后编译仍然出现如下图所示的错误,请问
C:\ti\mathlib_c674x_3_1_0_0\packages\ti\mathlib\src\acosdp_d(注意是acosdp_d哦)的C文件是例程吗???
你好,我用ccs5.5新建了一个生成static library的工程,里面包含了一个源文件,这个源文件就是一个函数,此外也新建了一个与之对应的头文件。之后编译在该工程下的Debug文件夹下面生成了.lib文件。。当我在其他工程中指定了头文件路径与库文件路径。同时在工程中调用了库中编写的函数,CCS编译没有任何错误,结果软件仿真的时候,这个函数根本就没有执行?但是出现了
Can't find a source file at "/tmp/TI_MKLIB7PNesw/SRC/exit.c"
Locate the file or edit the source lookup path to include its location.这个提示。我试了下,如果不调用生成的库中的函数,这个工程运行是正常的,用了生产的库中的函数,根本就没有执行。请求您帮助!谢谢!