CCS4.2下各个模块的使用教程 免费送给大家 希望对大家有用
CCS4.2下各个模块的使用教程 免费送给大家 希望对大家有用放在另外一个地方,那么也会打不开。注意,请不要把任何一个DSP280 k examples中的子文件copy到另外的地方去打井,那样是错误的。想要移动的话,请把 Code of tms320F280xCCS4整个文件火都移动泉面我的文档曰我的电◆本地磁盘〔)nsK2①:)3 io Code of TNS320280x CCS4+口DsP80 2 comT on日白DgF280 _ examples土白 MisplayEODZZLRL Example_280zCpuTiner CSoutine++++t 0 epwn_timer_interrupts文件夹所建文件夹确定(4)出现下图后,点n动p Import CCs Eclipse ProjectsSelect Existing CCS Eclipse ProjectSelect a directory to search for existing CCs Eclipse projectsO Select sear ch-directory: E: \Code of TMS320F280x CCS4\DSP280:x_e[ Browse,.O Select archive fileBrowseDiscovered projectsME Buzzer (E: \Code of TMS320F280x ccs4 \DSP280x_ex amples\Bu- Select AllDeselect AllRefreshM Copy projects into workspaceC Rinish Cancel(5)出现下图红圈处,这就代表已经打开了一个 project,也就是打开了 Buzzer pjt这个 projectC/C++- Code Composer Studio (Licensed)ile Edit Yiew Navi gate Project Target Tools Script Window HelpCC/C++ Projects x Target Confi gurationsBuzzer [Aetive -Debug]+e Debu主国 buzzer.g+- DSP200x_CpuTimersct-L DSP280x_DefaultIsrct-E DSP280x_GlobalVariableDefsc+-EnSP280x_PieCtrlc5 nSP280x_PieVectc国main.L 2802_RAM_InR 2808buzzer ccxml [Active工e,pL DSP280x_Headers_nonBIOScmds macros,inl打开 project后,一定需要编译( Build) project,点击 project-> Build all(快捷键(trl+B)或者 Rebuild all〔快捷键At+B),如果不编译( Build) project就无法生成Out文件,也就没法进行后面的 Load Program这个步骤。Sp C/C++-DSP280x Adc c-Code Composer Studio (LicensedEile Edit iew Navigate Project Target Tools Scripts Window HelpbUild Active ProjectCtrltShift+PRebuild Active ProjectAlt+Shi Et+PL Import Existing CCS/CCE Eclipse ProjectaESExample_280zAdcsSe [Import Legacy CCSv3 3 Project± IncludesBuildCtrltB色DebgreBuild All土-[IsP+)-[DSP280x_DefaultIClean Selected File(s+-s DSP280x_GlobalvarBuild Selected File(s)+).DSP280x_PieCtrlExclude File(s) from Build+)-[DSP2B0x_PieveActive Build Configurati土-[IsP230 x_ SysCtr1rolec主[IsP2Build置 orking Set±吴 Example_2 80xAdcsL28015_RAM_Ink.cmBuild Automaticallye DSP2B0x_HeadersLink Files to Active Project要 Examp1e280 xAdesAdd Files to Active ProjopertiesPenn mlk点击编译( Build后,会出现下面的进度条。Build ProjectCalling c: /Progran Files/Texas Instrume.. for project Example_ 280xAdcSegModeTestRun in backgroundCancelDetails >稍等些吋间后,会在下方出现编译的结果,看到“ Build complete”并且“0ero”就代表编译成功,就生成。如果有 errors,那么就编译失败,说明你的程序编写语句有eror,需要找到这个错误,并且修改掉,直至没有eror,否则就无法生成,out文件,无法进行后面的 Load program注意:有 waring是不影响OUT文件生成的曰 ConsoleProblems 5 Disassembly日C-Build LExample 280x deTest]0 errors,o warnings, o infFlnished bullding target: E: / codeDescription▲Of Ts320F2 80xCCS4/DSP280x examp les/ adc seqrmode test/Debug/Examp le 280xAdeSecMode Test. outuild complete for projectExample 280x Adc SecModeTest(6)移除 project中原来的.cxml文件,也就是 target configuration文件,移除方法,右键击2808 buzzer ccxml,然后选择 delete如卜图300buzzer ccxml [ActivellLa Buzzer pjtL DSP280x_Headers_nonBIOpers macros. iniOpen WithSet as Default Target Confi gurationSet as Active Target ConfigurationActive Build Confi gurationExclude File(s) from BuildDeletRefactorRefreshAdd bookmarkDebug asTe gnReplace Yi th出现提示款后,点YES,这样就移除完成了(7)移除旧的cxml文件后,再新建一个. ccxml文件,新建方法如下KC/C++- Code Composer Studio (LicensedEile Edit iew Navigate Project Target Tools Scripts Window Help「CHHX1mtca81bxe t Buzzer [Active -Debug]Debug history但Debugt-c Debug+a buzzer.c(8)出现下图后,给新建的cxm文件起个名字,再点上回se shared locati on刖面的小对勾(注意,这个务必要点上),推荐不要修改 location c: Documents andSettings luser\user\CCS Configurations,避免不必要的麻烦,尤其是不要保存在有中文路径的地方。然后点 finishNew Target ConfigurationTarget ConfigurationCreate a new Target Configurati on fileEile name: buzzer cxmlMise shared locationLocation: C: \Documents and Settings\user \CCSTargetConfigurations Yorksace1ance(9)出现下图,首先选择DSP仿真器的型号,如果你买的是本店100元的XDS100仿真器,那么就选红圈处 nstruments XDS100v3 nulato,如果你买的是本店198元的XDS00V2仿真器,那么就选蓝圈处sn3+ nents XDSTO0vZ UST@,也就是说你实际使用的仿真器型号,要在这个界面确的选择。E buzzer, ccxml xBasicGeneral SetupAdvanced SetupThis section describes the general confi gurati on about the targetConnectionllTexas Instruments SimulatorTarget Configuration: lists ttargetDeviceLAN Systrace EmulatorBlackhawk XDS560v2-USB System Trace EmulatorData Snapshot ViewerOther simulatorSave Confi君 arati onSEED XDS51OPLUS EmulatSpectrun Digital C2000 XDS510LC EmulatorSaveSpectrun Digital DSK-EVIM PLUS onboard USB EmulatorSpectrun Digital DSK-EVM-eZdsp onboar d USB Emul atorSpectrun Digital XDS510 Parallel Port-PCI Emulatorspectrun Digital NDS510USB EmulatorSpectrun Digi tal XDS560V2 STM LAN EmulatorSpectrun Digi tal XDS560V2 STM USB EmulatorSpectrun Digital eZ dsp2812 Parallel Port EmulatorStellaris In-Circuit Debug InterfaceTI XDS560 EmulatorTI XDS560 Nul at or, 20-pin RevD CableXDS100v1 USB Emulat,1Lsuitable for core level al gori thms developnent andbenchmarking wi thout the system effectsNote: Support for more devices may be available from the up dateBasic Advanced Source(10)选择DSP开发板上的DSP芯片的型号,本店的DSP开发板有TMS320F2808和TMS320F2802两个型号,请正确对应选择,下图就是以TMS320F2802为例,点上:前面的小对勾,然后点save飞* buzzer1.cexm1xBasicGeneral setupAdvanced SetupThis secti on describes the general confi guration about the targetConnection Texas Instruments KDS100v2 USB EmulatorTarget Configuration: lists ttargetDevicetms320f□TMS320P2801Save configurationTMS320F28015DTHSe20F28016aveTMs320r202TMS320F28020TMS320F280200TMS320F28021口TMS320F28022口THS320F28023TMS320F28026□THS320F28027Note: Support for more devices may be available from the updateBasic Advanced Source在这里我要格外强调一下,很多朋友在建立 ccxml文件的时候,会不小心建立多个,而且白己还没有发现,于是再往后面进行,就会出错。所以下面我插入一段,告诉人家如何检查自己是不是建立了多个cxml文件,如果建立了多个,请删除其他没有用的,只留下一个。检查的方法,点击Ⅴiew> Target Configuraton,如下图9c/C++-Code Composer Studio (LicensedFile Edit View Navigate Project Target Tools Scripts Window Help回品| C/Ct+ ProjectsB:妇·,黾cCPRoblemsConsole日BaxDebugL Target Confi gurationsConsol-s1会10 Memory出1 Registers国1t国o)= LocalPo Breakpoints]回Fes疯10ther然后就出现「图,需要点廾所有的小加号,然后看是不是只有唯一的一个cxml文件,如果有多个,请用右键点击,然后选 delete删除掉。这个很重要,很多朋友都是在这个问题上弄的不好,于是导致“连不上”(也就是左法 Connect)等等问题C/C++- Code Composer Studio (Licensed)File Edit View Navi gate Project Target Tools Scripts Window HelpC/C++ Projects R Target Configurations x-Dtype filter textProjects由| User Defined(11)把 buzzer l ccxml文件link到 buzzer. pjt。方法如下,在 Target Configuration界面下,右键点击 buzzer, ccxml然后选择 Link File to project,然后选 buzzer,I C/C++-zyFlash2 ccxnl-Code Composer Studio (Licensed)File Edit View Navi gate Project Target Tools Scripts Window HelpC/C++ Projects t Target Confi gurations x=BE zyFlash2 ccxml 23asIctype filter textGeneral setupThis section describes the geneE-C User DefinedConnectionTexas InstrumeE burrel. ccrnl [Defanlt1 New Tar get Confi guratitype filter tx卫 elet□THs320C647口TMs320C847aSRefresh□TMs320C847TMS320C6745si Launch Selected ConfigurationTNS320C6T4TS320C6746TMS320F280Link File to Projectulcer80rTs3zUF280Properties12)完成上面的lnk后,可以在C/C++ Project界面看到下图红圈处,这样就代表link成功C/C+- buzzer. cckil-Code Composer StudFile Edit View Navi gate Project Target Tools Scripts西c/ C+ Projects x arget Configur ations=a‖园btBase i Buzzer [Active- nebngl iIncludeThbuzzer. c+--DSP280x_CpuTimersc-L DSP280x_DefaultIsr c+- DSP200x_GlobalvariableDefsc+-LDSP280x_PieCtrlcnSP2BOx Pievect扁IsP2 BOx SysCtr1.e出国 nalf. c2802 RAMLa DSP280x_Headers_norBIOScmdaa buzzer1 ccxml [Active/Default]自ac0s(13)启动T的 Debugger( Launch TI Debugger),按下图操作c/c++- buzzer coxal- Code Composer Studio (Licensed)File Edit yiew Navi gate Project Target Tools Scripts Window HelpL Hew Target configuration.C/C++ Projects x Target Confie Launch TI DebuggerDebug history日 oIler[ Active-DebuDebug+色 DebugThis section describes the genebuzzerConnectionTexas Instrum∈#-[ DSP280x_CpuTimersc+--DSP280x_DefaultIsrcBoard or Device type filter te+LF DSP280x_GlobalvariableDefs c□TMs320C647L DSP280x_PieCtrlcTMS320C64T6+g DSP280xPieVect c□TWs320C647t-a DSP280x_SysCtrlc□TWs320C674王[miTMs320C674TMs320C6742802⊥RAM1nk.cmdTMS320F280墙 Buzzer,pt□TMs32F280La DSP280x_Headers_nonBIOSTMS320F280Ea buzzer1 ccxml [Active/Default回TMs320F280macros.ini《(14)进入CCS4的Dbug界面,如下图power studie (licenseeUl. I4 nw wire bsen Twra Taali Trini ime MalpBB22·9·5,2BpI. qcca),0)日日某W,a…,!X1·y( TEST0CHrE)A tos Iastruaat E 1ox u baal atar_Dat Cisaro In:ene a' iees都y想⊥ barbican ealy brDp flathr4门y9 Tars Inttrussts Is100 188 Faal ster 0/C2m C2 0842)Tus Imitrumats 13100 15) Elater 0/CMu: CO 2206:42)Y hnel en! g已…M□园2a austin tribes the rand nasraaletTe1 ferirbarel register、日Aw45体x日.aTuan Instrests22的4四影 Emulsin0cha【 rewet Dku Sisal teau加tw即0ua/aa最在上图红圈处是可以看出来你究竞选择的是什么的DSP仿真器,本实验选择的是XDS100V2插曲:(15)连接DSP仿真器和DSP开发板( Conenct),点击红圈处,或者快捷键AltC
用户评论
入门资料,挺好的。
不错的入门级学习资料,谢谢了
不错的入门资料
入门资料,很有帮助
很好的东西,谢谢楼主了
挺好的资料。。顶下