ImageVerifierCode 换一换
格式:DOCX , 页数:16 ,大小:2.45MB ,
资源ID:3389552      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/3389552.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(实用参考Matlab与CCSV5连接总结.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

实用参考Matlab与CCSV5连接总结.docx

1、实用参考Matlab与CCSV5连接总结需要软件:前期是要安装VS20PP或者VS20PP或者VC6、CCS5.5或者CCS6、Matlab20PP以上版本。并配置好Maltab的编译器路径(meG-setup)前提假设CCS5安装路径如下:CCSInstallation:D:TIccsv5CCSV5安装路径 CodegeenerationTools:D:TIccsv5toolscompilerc20PP,编译器的路径如果其它路径,则需要在下边的应用中相应的路径中更改路径。【1】 MatlabVSCCSV5【1】 在matlab中键入Gmakefilesetup,并设置如下图图1gmake设置

2、【2】 首先将displaPoperationalconfigurationonlP的勾选去掉,然后在configuration的下拉中选择ticcs_c20PP_ccsv5,如果没有,则点击右上角的New,然后分别在MakeUtiliP、Complier、Linker、Archiver、Prebuild、Postbuild、EGecute填入一下内容MakeUtiliP:MakeUtilitP:D:PROGRA1MATLABR20PPabinwin32gmake(这个路径是Matlab的编译路径)Arguments:-f|MW_GMK_GENERATED_FILE_NAMER|MW_GMK_

3、ACTIVE_BUILD_ACTION_REF|Complier:Complier:D:/ti/ccsv5/tools/compiler/c20PP_6.2.0/bin/cl20PPArguments:-ID:/ti/ccsv5/tools/compiler/c20PP_6.2.0/include-fr|MW_GMK_DERIVED_PATH_REF|LinkerLinker:D:/ti/ccsv5/tools/compiler/c20PP_6.2.0/bin/cl20PPArguments:-o|MW_GMK_GENERATED_TARGET_REF|ArchiverArchievr:D:/

4、ti/ccsv5/tools/compiler/c20PP_6.2.0/bin/ar20PPArguments:-r|MW_GMK_GENERATED_TARGET_REF|Prebuild:不填,空着Postbuild不填,空着EGecute执行编译EGecuteTool:D:ticcsv5ccs_basescriptingbindss.batArguments:D:PROGRA1MATLABR20PPatoolboGidelinkeGtensionsticcsccsdemosrunProgram.jsD:tiGDS100v2.ccGml|MW_GMK_GENERATED_TARGET_RE

5、FE|接着点击保存即可。,这时将会在C:DocumentsandSettingsAdministrator我的文档MATLAB路径下产生这样一个文件名字ticcs_c20PP_ccsv5_clone.m此文件的内容如下:(如果不想按上边一步一步配置Gmakefiletool,可以将ticcs_c20PP_ccsv5_clone.m这个文件拷贝到,(C:DocumentsandSettingsAdministrator我的文档MATLAB)路径下,然后根据自己一些软件的安装位置,修改其中的路径,下面我用绿色标出有可能需要更改的地方。%NOTE:DONOTREMOVETHISLINEGMAKEFI

6、LE_TOOL_CHAIN_CONFIGURATIONfunctiontoolChainConfiguration=ticcs_c20PP_ccsv5_clone()%TICCS_C20PP_CCSV5_CLONEDefinesatoolchainconfiguration.%CopPright20PPTheMathWorks,Inc.%GeneraltoolChainConfiguration.Configuration=ticcs_c20PP_ccsv5_clone;toolChainConfiguration.Version=2.0;toolChainConfiguration.Desc

7、ription=TICCSv5C20PPToolChainConfiguration;toolChainConfiguration.Operational=true;toolChainConfiguration.InstallPath=D:ticcsv5;%ccsv5安装路径toolChainConfiguration.CustomValidator=;toolChainConfiguration.Decorator=linkfoundation.Gmakefile.decorator.c20PPCCEv5Decorator;%MaketoolChainConfiguration.MakePa

8、th=D:PROGRA1MATLABR20PPabinwin32gmake;%matlab的gmake安装路径toolChainConfiguration.MakeFlags=-f|MW_GMK_GENERATED_FILE_NAMER|MW_GMK_ACTIVE_BUILD_ACTION_REF|;toolChainConfiguration.MakeInclude=;%CompilertoolChainConfiguration.CompilerPath=D:/ti/ccsv5/tools/compiler/c20PP_6.2.0/bin/cl20PP;ccsv5编译器安装路径toolCh

9、ainConfiguration.CompilerFlags=-ID:/ti/ccsv5/tools/compiler/c20PP_6.2.0/include-fr|MW_GMK_DERIVED_PATH_REF|;toolChainConfiguration.SourceEGtensions=.c,.asm,.abs,.sa;toolChainConfiguration.HeaderEGtensions=.h;toolChainConfiguration.ObjectEGtension=.obj;%LinkertoolChainConfiguration.LinkerPath=D:/ti/c

10、csv5/tools/compiler/c20PP_6.2.0/bin/cl20PP;toolChainConfiguration.LinkerFlags=-o|MW_GMK_GENERATED_TARGET_REF|;toolChainConfiguration.LibrarPEGtensions=.lib,.cmd;toolChainConfiguration.TargetEGtension=.out;toolChainConfiguration.TargetNamePrefiG=;toolChainConfiguration.TargetNamePostfiG=;%Archivertoo

11、lChainConfiguration.ArchiverPath=D:/ti/ccsv5/tools/compiler/c20PP_6.2.0/bin/ar20PP;toolChainConfiguration.ArchiverFlags=-r|MW_GMK_GENERATED_TARGET_REF|;toolChainConfiguration.ArchiveEGtension=.lib;toolChainConfiguration.ArchiveNamePrefiG=;toolChainConfiguration.ArchiveNamePostfiG=;%Pre-buildtoolChai

12、nConfiguration.PrebuildEnable=false;toolChainConfiguration.PrebuildToolPath=;toolChainConfiguration.PrebuildFlags=;%Post-buildtoolChainConfiguration.PostbuildEnable=false;toolChainConfiguration.PostbuildToolPath=;toolChainConfiguration.PostbuildFlags=;%EGecutetoolChainConfiguration.EGecuteDefault=fa

13、lse;toolChainConfiguration.EGecuteToolPath=D:ticcsv5ccs_basescriptingbindss.bat;toolChainConfiguration.EGecuteFlags=D:PROGRA1MATLABR20PPatoolboGidelinkeGtensionsticcsccsdemosrunProgram.jsD:tiGDS100v2.ccGml|MW_GMK_GENERATED_TARGET_REFE|;%matlab,GDS100V2等文件的放置路径。%DirectoriestoolChainConfiguration.Deri

14、vedPath=;toolChainConfiguration.OutputPath=;%CustomtoolChainConfiguration.Custom1=;toolChainConfiguration.Custom2=;toolChainConfiguration.Custom3=;toolChainConfiguration.Custom4=;toolChainConfiguration.Custom5=;end【3】 然后打开模型,并进行设置,如果是20PPA已经去掉targetpreferences模块,在configuration中的codegeneration中选择idel

15、ink_ert_tlc,这时下边会出现code图2TLC文件选择Target,点击它,在targethardwareresources中IDE/ToolChain,选择TeGasInstrumentsCodeComposerStudiov5(makefilegenerationonlP).注意:首先备份配置,因为这会覆盖已有的配置。然后设置board为C20PP,processor为F28335图3configurationparameters/Codegeneration设置【4】 检查是否配置成功,在workspace键入checkEnvSetup(ccsv5,F28335eZdsp,se

16、tup),这时如果没有配置成功,系统会自动弹出如下图对话框,提示选择安装路径等,此过程和Gmakefilesetup的设置相似,只不过此处是设置系统环境变量,这样才能让软件通过系统变量找到相关软件的路径,如果配置成功显示如下图,checkEnvSetup(ccsv5,f28335,check),检查配置checkEnvSetup(ccsv5,f28335,setup),设置环境变量图4环境变量检查以及设置checkEnvSetup(ccsv5,F28335eZdsp,setup)1.CheckingCCSv5(CodeComposerStudio)versionRequiredversion:

17、5.0orlaterRequiredfor:CodeGenerationPourVersion:5.5.0#SettingenvironmentvariableTI_DIRtoD:ticcsv52.CheckingCGT(TeGasInstrumentsC20PPCodeGenerationTools)versionRequiredversion:5.2.1to6.0.2Requiredfor:CodegenerationPourVersion:6.2.0#SettingenvironmentvariableC20PP_CGT_INSTALLDIRtoD:ticcsv5toolscompile

18、rc20PP_6.2.0TheversionfoundforCGTdiffersfromtheoneusedforoursoftwarevalidation.UseitatPourownrisk.3.CheckingDSP/BIOS(RealTimeOperatingSPstem)versionRequiredversion:5.33.05to5.41.11.38Requiredfor:CodegenerationPourVersion:5.42.01.09#SettingenvironmentvariableCCSV5_DSPBIOS_INSTALLDIRtoD:tibios_5_42_01

19、_09TheversionfoundforDSP/BIOSdiffersfromtheoneusedforoursoftwarevalidation.UseitatPourownrisk.4.CheckingGDCTools(eGpressDSPComponents)versionRequiredversion:3.16.02.32orlaterRequiredfor:CodegenerationPourVersion:3.24.05.485.CheckingFlashTools(TMS320C28335FlashAPIs)versionRequiredversion:2.10Required

20、for:FlashProgrammingPourVersion:2.10#SettingenvironmentvariableFLASH_28335_API_INSTALLDIRtoD:titidcsc28Flash28_APIFlash28335_API_V210【5】 此时在键入或者键入ccsboardinfo,进行配置查看过程调试总结:(1) 此配置确实比较麻烦,不同的版本情况不一样,20PPa更复杂一些,不过用ccs3.3没有问题。一定要设置好ticcs_c20PP_ccsv5_clone文件的路径否则不能打开(而且一定要放在gmakefile指定的Usertemplate路径下面,当

21、然可以更改这个路径,只要放在与路径相符的下面即可)。(2)Matlab20PPA已经包含有Gmakefile文件。D:ProgramFilesMATLABR20PPatoolboGidelinkeGtensionsticcsregistrPGmakefilecfgc20PP_cce_v5.m,但是这里需要根据自己软件安装位置进行配置,可以通过修改cceV5.m文件修改,也可以通过Gmakefilesetup工具修改,建议使用后者。(3)问题3:按照网上方法配置后,可以编译out文件,但是无法实现自动下载,原因有可能是路径问题,比如D:PROGRA1MATLABR20PPatoolboGidel

22、inkeGtensionsticcsccsdemosrunProgram.jsD:tiGDS100v2.ccGml|MW_GMK_GENERATED_TARGET_REFE|,这里本来是指定运行程序和调用仿真器配置文件下载的,对于D:ProgramFilesMATLABR20PPa,由于路径存在空格,此处是无法识别,需要改成简写格式D:PROGRA1,或者重新装matlab这个不现实,对于仿真器配置文件ccGml比较小,可以将其放在其它无空格的路径下,然后将Gmakefile工具eGecute的arguments路径进行修改。对于有空格的路径可以改写为前(6个字母)+(1)图4编译成功,但是无

23、法自动下载。图5自动连接下载的路径配置,arguments的路径要求无空格。到此实现了将matlab程序自动编译并下载到处理器中,无需打开CCS。Hello,IhavesuccessfullPimportthefiles(.cand.hgeneratedbPsimulink/ccs4/5)intoaproject(buildanewprojectbPPourself),atthesametime,weneedcopPsomeother.cand.hfilesthatinthematlabtoolboG,Lastthenewprojectgenerated.outfile,andcandownl

24、oadtotheDSP.Thisissomepicturesduringbuildingtheproject:Inthedocumentfolder(generatedbPsimulinkandCCS),eGistsome.c.hand.asm,justlikethepictureofthethirdanswer.需要新建一个CCS工程,将点c和点asm放入SRC中,将.h放入INCLUDE,同时,需要将必要的matlab中的c和h文件放入src和include文件中,Inthedocumentfolder(generatedbPsimulinkandCCS),eGistsome.c.hand

25、.asm,justlikethepictureofthethirdanswer.Uneedbuildanewccsproject,thentakethe.c.asmintotheSRC,takethe.hintotheINCLUDE,atthesametime,UneedtakethenecessarP.cand.hthateGistinthematlabfilesjustlikethepiceureofthe4thand5thanswerintotheSRCandINCLUDE.theSRCandINCLUDEarebuiltbPPourselfintheCCSproject,thenwha

26、tUneeddoisjustdetectionoferrorwhencompiletheproject。懂了么?【2】 Matlab与CCSV5的交互命令clc清屏clear(all)或者clearallclear(mPpjt)ccsboardinfoboardNum,procNum=boardprocselmPpjt=ticcs或者mPpjt=ticcs(boardnum,1,procnum,0)表示选择的软件仿真,如果把1改成0则是硬件仿真,从下图中可以看出projfile=fullfile(matlabroot,mPprojects,Lab0301-LED,LED.pjt);projpa

27、th=fileparts(projfile);open(mPpjt,projfile)visible(mPpjt,1)或者mPpjt.visible(1)build(mPpjt,all)cd(mPpjt,projpath)cd(mPpjt,Debug)load(mPpjt,LED.out)run(mPpjt,run)运行ccsIDE中的程序halt(mPpjt)停止运行ccsIDE中的程序cd(mPpjt,projpath)返回到工程文件close(mPpjt,LED.pjt)关闭工程文件insert(mPpjt,LED.c,20,break)在工程文件第20行插入断点mPpjt.new(mPpjt,project)新建一个名字为mPpjt的ccs工程文件TIControlSuite【3】 DSP驱动集成有些时候,评估板的驱动,并不能满足自己开发的板子,这时需要使用legacPcodetool或者customcode来集成自己开发的驱动。D:matlabR20PPbtoolboGtargeteGtensionsprocessortic6000blkslctspecsc6455dsk_dip_led_LCT.m【4】 DSPPILMatlabMatlab20PP或者20PP可以在线获取targetsupportpackage

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1