版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
ProgrammingDevelopmentEnvironmentCopyright?2023TexasInstruments.Allrightsreserved.
TechnicalTrainingOrganizationT
TOModule2TMS320C28x?MCUWorkshop第1頁(yè)LearningObjectivesUseCodeComposerStudioto:CreateaProjectSetBuildOptionsCreateauserlinkercommandfilewhich:Describesasystem’savailablememoryIndicateswheresectionswillbeplacedinmemory第2頁(yè)LearningObjectivesUseCodeComposerStudioto:CreateaProjectSetBuildOptionsCreateauserlinkercommandfilewhich:Describesasystem’savailablememoryIndicateswheresectionswillbeplacedinmemory第3頁(yè)CodeComposerStudioCodeComposerStudioincludes:IntegratedEdit/DebugGUICodeGenerationToolsDSP/BIOSAsmLinkEditorDebugCompileGraphs,ProfilingCodeSimulatoreZdsp?ExternalEmulatorMCUBoardLibrarieslnk.cmdBuild第4頁(yè)CodeComposerStudio:IDEIntegrates:edit,codegeneration,anddebugSingle-clickaccessusingbuttonsPowerfulgraphing/profilingtoolsAutomatedtasksusingGELscriptsandCCSscriptingBuilt-inaccesstoBIOSfunctionsSupportsTIand3rdpartyplug-ins第5頁(yè)TheCCSProjectListoffiles:Source(C,assembly)LibrariesDSP/BIOSconfigurationfileLinkercommandfilesProjectsettings:Buildoptions(compiler,Linker,assembler,andDSP/BIOS)BuildconfigurationsProject(.pjt)filescontain:第6頁(yè)BuildOptionsGUI-CompilerGUIhas8pagesofcategoriesforcodegenerationtoolsControlsmanyaspectsofthebuildprocess,suchas:OptimizationlevelTargetdeviceCompiler/assembly/linkoptions第7頁(yè)BuildOptionsGUI-LinkerGUIhas3categoriesforlinkingSpecifyvariouslinkoptions.\DebugmeansthedirectorycalledDebugonelevelbelowthe.pjtfiledirectory$(Proj_dir)\Debugisanequivalentexpression第8頁(yè)DefaultBuildConfigurationsAdd/RemoveyourowncustombuildconfigurationsusingProjectConfigurationsEditaconfiguration:SetitactiveModifybuildoptionsSaveprojectFornewprojects,CCSautomaticallycreatestwobuildconfigurations:Debug (unoptimized)Release (optimized)Usethedrop-downmenutoquicklyselectthebuildconfiguration第9頁(yè)LearningObjectivesUseCodeComposerStudioto:CreateaProjectSetBuildOptionsCreateauserlinkercommandfilewhich:Describesasystem’savailablememoryIndicateswheresectionswillbeplacedinmemory第10頁(yè)SectionsAllcodeconsistsofdifferentpartscalledsectionsAlldefaultsectionnamesbeginwith“.”Thecompilerhasdefaultsectionnamesforinitializedanduninitializedsectionsint x=2;int y=7;voidmain(void){longz;z=x+y;}Globalvars(.ebss)Initvalues(.cinit)Localvars(.stack)Code(.text)第11頁(yè)CompilerSectionNamesName Description LinkLocation.text code FLASH.cinit initializationvaluesfor FLASH globalandstaticvariables.econst constants(e.g.constintk=3;) FLASH.switch tablesforswitchstatements FLASH.pinit tablesforglobalconstructors(C++)FLASHInitializedSectionsName Description LinkLocation.ebssglobalandstaticvariables RAM.stackstackspace low64KwRAM.esysmemmemoryforfarmallocfunctions RAMUninitializedSectionsNote: DuringdevelopmentinitializedsectionscouldbelinkedtoRAMsince theemulatorcanbeusedtoloadtheRAM第12頁(yè)P(yáng)lacingSectionsinMemory.ebss.cinit.textMemoryM0SARAM(0x400)0x0000000x3000000x000400M1SARAM(0x400)FLASH(0x40000)Sections.stack第13頁(yè)LinkingLinkerLink.cmd.map.obj.out
Memorydescription
Howtoplaces/wintoh/w第14頁(yè)LinkerCommandFileMEMORY{PAGE0:/*ProgramMemory*/FLASH:origin=0x300000,length=0x40000PAGE1:/*DataMemory*/M0SARAM:origin=0x000000,length=0x400M1SARAM:origin=0x000400,length=0x400}第15頁(yè)LinkerCommandFileMEMORY{PAGE0:/*ProgramMemory*/FLASH:origin=0x300000,length=0x40000PAGE1:/*DataMemory*/M0SARAM:origin=0x000000,length=0x400M1SARAM:origin=0x000400,length=0x400}SECTIONS{.text:>FLASHPAGE=0.ebss:>M0SARAMPAGE=1.cinit:>FLASHPAGE=0 .stack:> M1SARAM PAGE=1}第16頁(yè)Exercise2GenericF28xdeviceM0SARAM(0x400)M1SARAM(0x400)L0SARAM(0x1000)L1SARAM(0x1000)0x0000000x0004000x0080000x009000FLASH(0x40000)0x300000Createthelinkercommandfileforthegivenmemorymapbyfillingintheblanksonthefollowingslide第17頁(yè)MEMORY{PAGE__:/*ProgramMemory*/_____:origin=____
___,length=___
_________:/*DataMemory*/_______:origin=__
____,length=____________:origin=____
___,length=____________:origin=___
____,length=__
__________:origin=___
____,length=_
____}SECTIONS{.text:>FLASHPAGE=0.ebss:>M0SARAMPAGE=1.cinit:>FLASHPAGE=0.stack:>M1SARAMPAGE=1}Exercise2-CommandFile第18頁(yè)MEMORY{PAGE0:/*ProgramMemory*/
FLASH:origin=0x300000,length=0x40000
PAGE1:/*DataMemory*/
M0SARAM:origin=0x000000,length=0x400
M1SARAM:origin=0x000400,length=0x400
L0SARAM:origin=0x008000,length=0x1000
L1SARAM:origin=0x009000,length=0x1000}SECTIONS{.text:>FLASHPAGE=0.ebss:>M0SARAMPAGE=1.cinit:>FLASHPAGE=0.stack:>M1SARAMPAGE=1}Exercise2-Solution第19頁(yè)LinkerCommandFileSummaryMemoryMapDescriptionNameLocationSizeSectionsDescriptionDirectssoftwaresectionsintonamedmemoryregionsAllowsper-filediscriminationAllowsseparateload/runlocations第20頁(yè)Lab2:LinkerCommandFileSystemDescription:
TMS320F28335AllinternalRAMblocksallocatedPlacementofSections:
.textintoRAMBlockL0123SARAMonPAGE0(programmemory).cinitintoRAMBlockL0123SARAMonPAGE0(programmemory).ebssintoRAMBlockL4SARAMonPAGE1(datamemory).stackintoRAMBlockM1SARAMonPAGE1(datamemory)F28335Memoryon-chipmemory0x008000L0SARAM(0x1000)0x000400M1SARAM(0x400)0x00C000L4SARAM(0x1000)0x00B000L3SARAM(0x1000)0x000000M0SARAM(0x400)0x009000L1SARAM(0x1000)0x00A000L2SARAM(0x1000)0x00D000L5SARAM(0x1000)0x00E000L6SARAM(0x1000)0x00F000L7SARAM(0x1000)第21頁(yè)Lab2:Solution
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五版泥漿外運(yùn)承包合同(含應(yīng)急處理預(yù)案)4篇
- 二零二五版拌合料生產(chǎn)技術(shù)標(biāo)準(zhǔn)制定與執(zhí)行合同4篇
- 二零二五年度智能建筑暖通設(shè)備采購(gòu)合同4篇
- 二零二五版門(mén)閘安全標(biāo)準(zhǔn)認(rèn)證服務(wù)合同4篇
- 二零二五年度網(wǎng)絡(luò)安全年薪制勞動(dòng)合同4篇
- 二零二五年度沖擊錘施工材料質(zhì)量檢測(cè)合同2篇
- 二零二五年度租賃市場(chǎng)合同糾紛解決策略4篇
- 二零二五年度城市更新改造項(xiàng)目規(guī)劃合同4篇
- 二零二五年度農(nóng)業(yè)電商數(shù)據(jù)安全與隱私保護(hù)合同樣本3篇
- 2025年度二零二五年度獼猴桃出口貿(mào)易代理合同3篇
- 2024年供應(yīng)鏈安全培訓(xùn):深入剖析與應(yīng)用
- 飛鼠養(yǎng)殖技術(shù)指導(dǎo)
- 壞死性筋膜炎
- 整式的加減單元測(cè)試題6套
- 股權(quán)架構(gòu)完整
- 山東省泰安市2022年初中學(xué)業(yè)水平考試生物試題
- 注塑部質(zhì)量控制標(biāo)準(zhǔn)全套
- 人教A版高中數(shù)學(xué)選擇性必修第一冊(cè)第二章直線和圓的方程-經(jīng)典例題及配套練習(xí)題含答案解析
- 銀行網(wǎng)點(diǎn)服務(wù)禮儀標(biāo)準(zhǔn)培訓(xùn)課件
- 二年級(jí)下冊(cè)數(shù)學(xué)教案 -《數(shù)一數(shù)(二)》 北師大版
- 晶體三極管資料
評(píng)論
0/150
提交評(píng)論