资源描述:
《DSP_CMD编写注意事项》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、关于TMS320F28XX启动代码使用方法共18页链接WARNNING选项-w选项最好选上,有助于编译器在用户没有显式指定某一SECTION的链接方式时报warnning。The-woptioncanbeselectedinCodeComposerStudioontheProject→Build_Optionsmenu,Linkertab,selecttheAdvancedcategory,andthencheckthe-woptionbox.内存大小端模式Itisimportantthatthelargememory
2、modelbeusedwiththeC-compiler(asopposedtothesmallmemorymodel).Smallmemorymodelrequirescertaininitializedsectionstobelinkedtonon-volatilememoryinthelower64Kwofaddressablespace.However,noflashmemoryispresentinthisregiononanycurrentF28xxdevices,andthiswilllikelybetr
3、ueforfutureF28xxdevicesaswell.Therefore,largememorymodelshouldbeused.InCodeComposerStudio,thelargememorymodelisontheProject→Build_Optionsmenu.SelecttheCompilertab,choosetheAdvancedcategory,andcheckthe-mloptionbox.Fornon-DSP/BIOSprojects,oneshouldincludethelargem
4、emorymodelCcompilerruntimesupportlibrary,rts2800_ml.lib,intotheircodeproject(asopposedtorts2800.lib,whichisforthesmallmemorymodel).ForDSP/BIOSprojects,DSP/BIOSwilltakecareofincludingtherequiredlibrary.Theusershouldnotincludetherts2800_ml.lib(orrts2800.lib)librar
5、yintoaDSP/BIOSproject.Non-DSP/BIOSProjects链接位置图表1LINKDSP/BIOSProjects链接位置图表2LINKTable2Notes:1.The.trcdatasectionmustbecopiedbytheuserfromitsloadaddress(specifiedontheLoad_Addresstab)toitsrunaddress(specifiedontheBIOS_Datatab)atruntime.SeeSection4.3fordetailsonpe
6、rformingthiscopy.2.ThePIEVECTRAMisaspecificblockofRAMassociatedwiththePeripheralInterruptExpansion(PIE)peripheral.OncurrentF28xxdevices,thePIERAMisa256x16blockstartingataddress0x000D00indataspace.Forotherdevices,confirmtheaddressinthedevicedatasheet.Thememorysec
7、tionmanagerintheDSP/BIOSconfigurationtoolshouldalreadyhaveapre-definedmemorynamedPIEVECT.The.hwi_vecsectionmustbecopiedbytheuserfromitsloadaddress(specifiedonthememorysectionmanagerLoad_AddressTab)toitsrunaddress(specifiedonthememorysectionmanagerBIOS_CodeTab)at
8、runtime.SeeSection4.2fordetailsonperformingthiscopy.3.Thespecificflashmemoryselectedastheloadaddressforthissectionshouldbethesameflashmemoryselectedpreviouslyastherun