版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、需要软件:前期是要安装vs2010或者vs2008或者vc6、ccs5.5或者ccs6、matlab2012以上版本。并配置好maltab的编译器路径(mex -setup)前提假设ccs5安装路径如下:ccs installation: d:ticcsv5 ccsv5安装路径code geeneration tools: d:ticcsv5toolscompilerc2000 ,编译器的路径如果其它路径,则需要在下边的应用中相应的路径中更改路径。 【1】 matlab vs ccsv5【1】 在matlab 中键入xmakefilesetup ,并设置如下图图1 gmake设置【2】 首先将
2、display operational configuration only的勾选去掉,然后在configuration的下拉中选择ticcs_c2000_ccsv5,如果没有,则点击右上角的new,然后分别在make utiliy、complier、linker、archiver、prebuild、postbuild、execute填入一下内容 make utiliy: make utility : d:progra1matlabr2013abinwin32gmake (这个路径是matlab的编译路径)arguments : -f "|mw_xmk_generated_file_
3、namer|" |mw_xmk_active_build_action_ref|complier :complier: d:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000arguments :-i"d:/ti/ccsv5/tools/compiler/c2000_6.2.0/include" -fr"|mw_xmk_derived_path_ref|"linker linker: d:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000arguments
4、: -o |mw_xmk_generated_target_ref|archiver archievr: d:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/ar2000arguments: -r |mw_xmk_generated_target_ref|prebuild : 不填,空着postbuild 不填,空着execute 执行编译execute tool: d:ticcsv5ccs_basescriptingbindss.batarguments :"d:progra1matlabr2013atoolboxidelinkextensions
5、ticcsccsdemosrunprogram.js" "d:tixds100v2.ccxml" "|mw_xmk_generated_target_refe|"接着点击保存即可。,这时将会在c:documents and settingsadministrator我的文档matlab 路径下产生这样一个文件名字 ticcs_c2000_ccsv5_clone.m此文件的内容如下:(如果不想按上边一步一步配置xmakefiletool,可以将ticcs_c2000_ccsv5_clone.m这个文件拷贝到,(c:documents and se
6、ttingsadministrator我的文档matlab )路径下,然后根据自己一些软件的安装位置,修改其中的路径,下面我用绿色标出有可能需要更改的地方。% note: do not remove this line xmakefile_tool_chain_configurationfunction toolchainconfiguration = ticcs_c2000_ccsv5_clone()%ticcs_c2000_ccsv5_clone defines a tool chain configuration.% copyright 2015 the mathworks, inc.%
7、 generaltoolchainconfiguration.configuration = 'ticcs_c2000_ccsv5_clone'toolchainconfiguration.version = '2.0'toolchainconfiguration.description = 'ti ccs v5 c2000 tool chain configuration'toolchainconfiguration.operational = true;toolchainconfiguration.installpath = 'd:t
8、iccsv5' % ccsv5安装路径toolchainconfiguration.customvalidator = ''toolchainconfiguration.decorator = 'linkfoundation.xmakefile.decorator.c2000ccev5decorator'% maketoolchainconfiguration.makepath = 'd:progra1matlabr2013abinwin32gmake' %matlab 的gmake安装路径toolchainconfiguration.m
9、akeflags = '-f "|mw_xmk_generated_file_namer|" |mw_xmk_active_build_action_ref|'toolchainconfiguration.makeinclude = ''% compilertoolchainconfiguration.compilerpath = 'd:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000' ccsv5编译器安装路径toolchainconfiguration.compilerflag
10、s = '-i"d:/ti/ccsv5/tools/compiler/c2000_6.2.0/include" -fr"|mw_xmk_derived_path_ref|"'toolchainconfiguration.sourceextensions = '.c,.asm,.abs,.sa'toolchainconfiguration.headerextensions = '.h'toolchainconfiguration.objectextension = '.obj'% linker
11、toolchainconfiguration.linkerpath = 'd:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000'toolchainconfiguration.linkerflags = '-o |mw_xmk_generated_target_ref|'toolchainconfiguration.libraryextensions = '.lib,.cmd'toolchainconfiguration.targetextension = '.out'toolchain
12、configuration.targetnameprefix = ''toolchainconfiguration.targetnamepostfix = ''% archivertoolchainconfiguration.archiverpath = 'd:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/ar2000'toolchainconfiguration.archiverflags = '-r |mw_xmk_generated_target_ref|'toolchainconfigu
13、ration.archiveextension = '.lib'toolchainconfiguration.archivenameprefix = ''toolchainconfiguration.archivenamepostfix= ''% pre-buildtoolchainconfiguration.prebuildenable = false;toolchainconfiguration.prebuildtoolpath = ''toolchainconfiguration.prebuildflags = '&
14、#39;% post-buildtoolchainconfiguration.postbuildenable = false;toolchainconfiguration.postbuildtoolpath = ''toolchainconfiguration.postbuildflags = ''% executetoolchainconfiguration.executedefault = false;toolchainconfiguration.executetoolpath = 'd:ticcsv5ccs_basescriptingbindss.
15、bat'toolchainconfiguration.executeflags = '"d:progra1matlabr2013atoolboxidelinkextensionsticcsccsdemosrunprogram.js" "d:tixds100v2.ccxml" "|mw_xmk_generated_target_refe|"' %matlab ,xds100v2等文件的放置路径。% directoriestoolchainconfiguration.derivedpath = ''
16、toolchainconfiguration.outputpath = ''% customtoolchainconfiguration.custom1 = ''toolchainconfiguration.custom2 = ''toolchainconfiguration.custom3 = ''toolchainconfiguration.custom4 = ''toolchainconfiguration.custom5 = ''end【3】 然后打开模型,并进行设置,如果是2013a已经去
17、掉 target preferences模块,在configuration中的 code generation 中选择idelink_ert_tlc,这时下边会出现code 图2 tlc文件选择target ,点击它,在target hardware resources中"ide/tool chain" ,选择"texas instruments code composer studio v5 (makefile generation only)".注意:首先备份配置,因为这会覆盖已有的配置。然后设置board为c2000,processor为
18、 f28335 图3 configuration parameters/code generation设置【4】 检查是否配置成功,在workspace键入checkenvsetup('ccsv5','f28335 ezdsp', 'setup'),这时如果没有配置成功,系统会自动弹出如下图对话框,提示选择安装路径等,此过程和xmakefilesetup的设置相似,只不过此处是设置系统环境变量,这样才能让软件通过系统变量找到相关软件的路径,如果配置成功显示如下图,checkenvsetup('ccsv5','f28335&
19、#39;, 'check),检查配置checkenvsetup('ccsv5','f28335', 'setup'),设置环境变量图4 环境变量检查以及设置checkenvsetup('ccsv5','f28335 ezdsp', 'setup')1. checking ccsv5 (code composer studio) version required version: 5.0 or later required for : code generation your version
20、: 5.5.0 # setting environment variable "ti_dir" to "d:ticcsv5"2. checking cgt (texas instruments c2000 code generation tools) version required version: 5.2.1 to 6.0.2 required for : code generation your version : 6.2.0 # setting environment variable "c2000_cgt_installdir&quo
21、t; to "d:ticcsv5toolscompilerc2000_6.2.0" the version found for "cgt" differs from the one used for our software validation. use it at your own risk.3. checking dsp/bios (real time operating system) version required version: 5.33.05 to 8 required for : code generation yo
22、ur version : 5.42.01.09 # setting environment variable "ccsv5_dspbios_installdir" to "d:tibios_5_42_01_09" the version found for "dsp/bios" differs from the one used for our software validation. use it at your own risk.4. checking xdc tools (express dsp components) vers
23、ion required version: 3.16.02.32 or later required for : code generation your version : 3.24.05.485. checking flash tools (tms320c28335 flash apis) version required version: 2.10 required for : flash programming your version : 2.10 # setting environment variable "flash_28335_api_installdir"
24、; to "d:titidcsc28flash28_apiflash28335_api_v210"【5】 此时在键入或者键入ccsboardinfo,进行配置查看过程调试总结:(1) 此配置确实比较麻烦,不同的版本情况不一样,2010a更复杂一些,不过用ccs3.3没有问题。一定要设置好ticcs_c2000_ccsv5_clone文件的路径否则不能打开(而且一定要放在gmakefile指定的user template路径下面 ,当然可以更改这个路径,只要放在与路径相符的下面即可)。(2) matlab2013a已经包含有xmakefile文件。d:program file
25、smatlabr2013atoolboxidelinkextensionsticcsregistryxmakefilecfgc2000_cce_v5.m,但是这里需要根据自己软件安装位置进行配置,可以通过修改ccev5.m文件修改,也可以通过xmakefilesetup工具修改,建议使用后者。(3) 问题3:按照网上方法配置后,可以编译out文件,但是无法实现自动下载,原因有可能是路径问题,比如"d:progra1matlabr2013atoolboxidelinkextensionsticcsccsdemosrunprogram.js" "d:tixds100v
26、2.ccxml" "|mw_xmk_generated_target_refe|",这里本来是指定运行程序和调用仿真器配置文件下载的,对于d:program filesmatlabr2013a,由于路径存在空格,此处是无法识别,需要改成简写格式d:progra1,或者重新装matlab这个不现实,对于仿真器配置文件ccxml比较小,可以将其放在其它无空格的路径下,然后将xmakefile 工具execute 的arguments路径进行修改。对于有空格的路径可以改写为前(6个字母)+(1)图4 编译成功,但是无法自动下载。图5 自动连接下载的路径配置,argume
27、nts的路径要求无空格。到此实现了将matlab程序自动编译并下载到处理器中,无需打开ccs。 hello,i have successfully import the files( .c and .h generated by simulink/ccs4/5 ) into a project (build a new project by yourself ),at the same time ,we need copy some other .c and .h files that in the matlab toolbox,last the new project generated .
28、out file ,and can download to the dsp.this is some pictures during building the project:in the document folder(generated by simulink and ccs),exist some .c .h and .asm, just like the picture of the third answer. 需要新建一个ccs工程,将点c和点asm放入src中,将.h放入include,同时,需要将必要的matlab中的c和h文件放入src和include文件中,in the do
29、cument folder(generated by simulink and ccs),exist some .c .h and .asm, just like the picture of the third answer. u need build a new ccs project , then take the .c .asm into the src, take the .h into the include, at the same time ,u need take the necessary .c and .h that exist in the matlab files just like the piceure of the 4th and 5th answer into the src and include . the src and include are built by yourself in the ccs project,then what u need do is just detection of error when compile the project。 懂了么?【2】 matlab
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年清洁小家电行业研究报告:扫地机、吸尘器产品生命周期研究
- 2026年物流行业报告及供应链优化研究
- 2026年家电行业事件营销效果评估报告
- 2026年房地产行业成本压力解析与盈利模式创新报告
- 2026年动漫产业报告:行业现状与市场前景分析
- 2026年汽车自动驾驶技术发展报告及市场应用前景
- 2026年电子信息原材料库存预警及应对策略报告
- 2026年5G通信技术创新报告:产业应用与未来展望报告
- 2026年汽车后市场行业博览会参会技巧与客户获取
- 2026年互联网行业发展趋势报告及政策影响分析
- 实验室安全培训案例课件
- 快消品特殊渠道开发课件
- 2025-2026学年北京市文汇中学教育集团九年级(上)期中语文试卷
- 上海市郊野乡村风貌规划设计和建设导则二
- 风机降噪方案
- 产品开发TR5评审要素表
- 多学科交叉融合驱动下机器人导论课程实践与思考
- 航天科工集团在线测评题
- GB/T 44211-2024消费品质量分级导则家具
- 求职OMG-大学生就业指导与技能开发智慧树知到期末考试答案章节答案2024年中国海洋大学
- 第10章-幼儿园组织文化建设课件
评论
0/150
提交评论