




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、需要軟件:前期是要安裝VS2010或者VS2008或者VC6、CCS5.5或者CCS6、Matlab2012以上版本。并配置好Maltab的編譯器路徑(mex -setup)前提假設(shè)CCS5安裝路徑如下:CCS Installation: D:TIccsv5 CCSV5安裝路徑Code geeneration Tools: D:TIccsv5toolscompilerc2000 ,編譯器的路徑如果其它路徑,則需要在下邊的應(yīng)用中相應(yīng)的路徑中更改路徑。 【1】 Matlab VS CCSV5【1】 在matlab 中鍵入xmakefilesetup ,并設(shè)置如下圖圖1 gmake設(shè)置【2】 首先將
2、display operational configuration only的勾選去掉,然后在configuration的下拉中選擇ticcs_c2000_ccsv5,如果沒有,則點(diǎn)擊右上角的New,然后分別在Make Utiliy、Complier、Linker、Archiver、Prebuild、Postbuild、Execute填入一下內(nèi)容 Make Utiliy: Make Utility : D:PROGRA1MATLABR2013abinwin32gmake (這個(gè)路徑是Matlab的編譯路徑)Arguments : -f |MW_XMK_GENERATED_FILE_NAMER|
3、 |MW_XMK_ACTIVE_BUILD_ACTION_REF|Complier :Complier: D:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000Arguments :-ID:/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 : -o |MW_XMK_GENERATED_TARGET_REF|Ar
4、chiver Archievr: D:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/ar2000Arguments: -r |MW_XMK_GENERATED_TARGET_REF|Prebuild : 不填,空著Postbuild 不填,空著Execute 執(zhí)行編譯Execute Tool: D:ticcsv5ccs_basescriptingbindss.batArguments :D:PROGRA1MATLABR2013atoolboxidelinkextensionsticcsccsdemosrunProgram.js D:tiXDS100v2.cc
5、xml |MW_XMK_GENERATED_TARGET_REFE|接著點(diǎn)擊保存即可。,這時(shí)將會(huì)在C:Documents and SettingsAdministrator我的文檔MATLAB 路徑下產(chǎn)生這樣一個(gè)文件名字 ticcs_c2000_ccsv5_clone.m此文件的內(nèi)容如下:(如果不想按上邊一步一步配置xmakefiletool,可以將ticcs_c2000_ccsv5_clone.m這個(gè)文件拷貝到,(C:Documents and SettingsAdministrator我的文檔MATLAB )路徑下,然后根據(jù)自己一些軟件的安裝位置,修改其中的路徑,下面我用綠色標(biāo)出有可能需要
6、更改的地方。% 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.% GeneraltoolChainConfiguration.Configuration = ticcs_c2000_ccsv5_clone;t
7、oolChainConfiguration.Version = 2.0;toolChainConfiguration.Description = TI CCS v5 C2000 Tool Chain Configuration;toolChainConfiguration.Operational = true;toolChainConfiguration.InstallPath = D:ticcsv5; % ccsv5安裝路徑toolChainConfiguration.CustomValidator = ;toolChainConfiguration.Decorator = linkfoun
8、dation.xmakefile.decorator.c2000CCEv5Decorator;% MaketoolChainConfiguration.MakePath = D:PROGRA1MATLABR2013abinwin32gmake; %matlab 的gmake安裝路徑toolChainConfiguration.MakeFlags = -f |MW_XMK_GENERATED_FILE_NAMER| |MW_XMK_ACTIVE_BUILD_ACTION_REF|;toolChainConfiguration.MakeInclude = ;% CompilertoolChainC
9、onfiguration.CompilerPath = D:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/cl2000; ccsv5編譯器安裝路徑toolChainConfiguration.CompilerFlags = -ID:/ti/ccsv5/tools/compiler/c2000_6.2.0/include -fr|MW_XMK_DERIVED_PATH_REF|;toolChainConfiguration.SourceExtensions = .c,.asm,.abs,.sa;toolChainConfiguration.HeaderExte
10、nsions = .h;toolChainConfiguration.ObjectExtension = .obj;% LinkertoolChainConfiguration.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.Ta
11、rgetExtension = .out;toolChainConfiguration.TargetNamePrefix = ;toolChainConfiguration.TargetNamePostfix = ;% ArchivertoolChainConfiguration.ArchiverPath = D:/ti/ccsv5/tools/compiler/c2000_6.2.0/bin/ar2000;toolChainConfiguration.ArchiverFlags = -r |MW_XMK_GENERATED_TARGET_REF|;toolChainConfiguration
12、.ArchiveExtension = .lib;toolChainConfiguration.ArchiveNamePrefix = ;toolChainConfiguration.ArchiveNamePostfix= ;% Pre-buildtoolChainConfiguration.PrebuildEnable = false;toolChainConfiguration.PrebuildToolPath = ;toolChainConfiguration.PrebuildFlags = ;% Post-buildtoolChainConfiguration.PostbuildEna
13、ble = false;toolChainConfiguration.PostbuildToolPath = ;toolChainConfiguration.PostbuildFlags = ;% ExecutetoolChainConfiguration.ExecuteDefault = false;toolChainConfiguration.ExecuteToolPath = D:ticcsv5ccs_basescriptingbindss.bat;toolChainConfiguration.ExecuteFlags = D:PROGRA1MATLABR2013atoolboxidel
14、inkextensionsticcsccsdemosrunProgram.js D:tiXDS100v2.ccxml |MW_XMK_GENERATED_TARGET_REFE|; %matlab ,XDS100V2等文件的放置路徑。% DirectoriestoolChainConfiguration.DerivedPath = ;toolChainConfiguration.OutputPath = ;% CustomtoolChainConfiguration.Custom1 = ;toolChainConfiguration.Custom2 = ;toolChainConfigurat
15、ion.Custom3 = ;toolChainConfiguration.Custom4 = ;toolChainConfiguration.Custom5 = ;end【3】 然后打開模型,并進(jìn)行設(shè)置,如果是2013A已經(jīng)去掉 target preferences模塊,在configuration中的 code generation 中選擇idelink_ert_tlc,這時(shí)下邊會(huì)出現(xiàn)code 圖2 TLC文件選擇Target ,點(diǎn)擊它,在target hardware resources中IDE/Tool Chain,選擇Texas Instruments Code Composer S
16、tudio v5 (makefile generation only).注意:首先備份配置,因?yàn)檫@會(huì)覆蓋已有的配置。然后設(shè)置board為C2000,processor為 F28335 圖3 configuration parameters/Code generation設(shè)置【4】 檢查是否配置成功,在workspace鍵入checkEnvSetup(ccsv5,F28335 eZdsp, setup),這時(shí)如果沒有配置成功,系統(tǒng)會(huì)自動(dòng)彈出如下圖對話框,提示選擇安裝路徑等,此過程和xmakefilesetup的設(shè)置相似,只不過此處是設(shè)置系統(tǒng)環(huán)境變量,這樣才能讓軟件通過系統(tǒng)變量找到相關(guān)軟件的路徑,
17、如果配置成功顯示如下圖,checkEnvSetup(ccsv5,f28335, check),檢查配置checkEnvSetup(ccsv5,f28335, setup),設(shè)置環(huán)境變量圖4 環(huán)境變量檢查以及設(shè)置checkEnvSetup(ccsv5,F28335 eZdsp, setup)1. Checking CCSv5 (Code Composer Studio) version Required version: 5.0 or later Required for : Code Generation Your Version : 5.5.0 # Setting environment v
18、ariable TI_DIR to D:ticcsv52. 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 to D:ticcsv5toolscompilerc2000_6.2.0 The version found for CGT d
19、iffers 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 Your Version : 5.42.01.09 # Setting environment variable CCSV5_DSPBIOS_INSTALLDIR to D:tibios
20、_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) version Required version: 3.16.02.32 or later Required for : Code generation Your Version : 3.24.05.485. Checking Flash Tools (TMS3
21、20C28335 Flash APIs) version Required version: 2.10 Required for : Flash Programming Your Version : 2.10 # Setting environment variable FLASH_28335_API_INSTALLDIR to D:titidcsc28Flash28_APIFlash28335_API_V210【5】 此時(shí)在鍵入或者鍵入ccsboardinfo,進(jìn)行配置查看過程調(diào)試總結(jié):(1) 此配置確實(shí)比較麻煩,不同的版本情況不一樣,2010a更復(fù)雜一些,不過用ccs3.3沒有問題。一定要
22、設(shè)置好ticcs_c2000_ccsv5_clone文件的路徑否則不能打開(而且一定要放在gmakefile指定的User template路徑下面 ,當(dāng)然可以更改這個(gè)路徑,只要放在與路徑相符的下面即可)。(2) Matlab2013A已經(jīng)包含有xmakefile文件。D:Program FilesMATLABR2013atoolboxidelinkextensionsticcsregistryxmakefilecfgc2000_cce_v5.m,但是這里需要根據(jù)自己軟件安裝位置進(jìn)行配置,可以通過修改cceV5.m文件修改,也可以通過xmakefilesetup工具修改,建議使用后者。(3)
23、問題3:按照網(wǎng)上方法配置后,可以編譯out文件,但是無法實(shí)現(xiàn)自動(dòng)下載,原因有可能是路徑問題,比如D:PROGRA1MATLABR2013atoolboxidelinkextensionsticcsccsdemosrunProgram.js D:tiXDS100v2.ccxml |MW_XMK_GENERATED_TARGET_REFE|,這里本來是指定運(yùn)行程序和調(diào)用仿真器配置文件下載的,對于D:Program FilesMATLABR2013a,由于路徑存在空格,此處是無法識別,需要改成簡寫格式D:PROGRA1,或者重新裝matlab這個(gè)不現(xiàn)實(shí),對于仿真器配置文件ccxml比較小,可以將其放
24、在其它無空格的路徑下,然后將xmakefile 工具execute 的arguments路徑進(jìn)行修改。對于有空格的路徑可以改寫為前(6個(gè)字母)+(1)圖4 編譯成功,但是無法自動(dòng)下載。圖5 自動(dòng)連接下載的路徑配置,arguments的路徑要求無空格。到此實(shí)現(xiàn)了將matlab程序自動(dòng)編譯并下載到處理器中,無需打開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 t
25、he same time ,we need copy some other .c and .h files that in the matlab toolbox,Last the new project generated .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 pict
26、ure of the third answer. 需要新建一個(gè)CCS工程,將點(diǎn)c和點(diǎn)asm放入SRC中,將.h放入INCLUDE,同時(shí),需要將必要的matlab中的c和h文件放入src和include文件中,In the document 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
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 安徽農(nóng)業(yè)大學(xué)《孟荀比較研究》2023-2024學(xué)年第二學(xué)期期末試卷
- 公司產(chǎn)品價(jià)格調(diào)整通知公告
- 工地噪音標(biāo)準(zhǔn)
- 第15課 明朝的統(tǒng)治 教案2024-2025學(xué)年七年級歷史下冊新課標(biāo)
- 屋面噴漆改造施工方案
- 消火栓防撞柱施工方案
- 專項(xiàng)施工方案動(dòng)畫視頻
- 2025年高考?xì)v史風(fēng)標(biāo)訓(xùn)練卷2(含解析)
- 文物清除水銹施工方案
- 5年級下冊語文書第4課批準(zhǔn)
- 小學(xué)音樂-只怕不抵抗教學(xué)設(shè)計(jì)學(xué)情分析教材分析課后反思
- 高處作業(yè)專項(xiàng)安全培訓(xùn)考試試題(帶答案)
- 2023年新改版教科版四年級下冊科學(xué)精編練習(xí)題(含單元+期中+期末測試卷)
- 2021年劍橋國際少兒英語KidsBox2文本
- GB/T 24186-2022工程機(jī)械用高強(qiáng)度耐磨鋼板和鋼帶
- GB/T 6967-2009工程結(jié)構(gòu)用中、高強(qiáng)度不銹鋼鑄件
- 護(hù)理人際關(guān)系倫理
- 公司發(fā)文登記表模板
- 法考-01刑法-案例指導(dǎo)用書【】
- 《考古學(xué)》第二章-田野考古課件
- 中國隧道及地下工程修建技術(shù)PPT
評論
0/150
提交評論