资源描述:
《Nios II Command-Line ToolsNiosⅡ命令行工具》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、4.NiosIICommand-LineToolsJuly2011ED51004-2.2ED51004-2.2IntroductionThischapterdescribestheNios®IIcommand-linetoolsthatareprovidedwiththeNiosIIEmbeddedDevelopmentSuite(EDS).ThechapterdescribesboththeAltera®toolsandtheGNUtools.Mostofthecommandsarelocatedinthebinands
2、dk2subdirectoriesofyourNiosIIEDSinstallation.TheAlteracommandlinetoolsareusefulforarangeofactivities,fromboardandsystem-leveldebuggingtoprogramminganFPGAconfigurationfile(.sof).Forthesetools,theexamplesexpandonthebriefdescriptionsoftheAltera-providedcommand-lineto
3、olsfordevelopingNiosIIprogramsin“Altera-ProvidedEmbeddedDevelopmentTools”intheNiosIISoftwareBuildToolschapteroftheNiosIISoftwareDeveloper’sHandbook.TheNiosIIGCCtoolchaincontainstheGNUCompilerCollection,GNUBinaryUtilities(binutils),andnewlibClibrary.1Allofthecomman
4、dsdescribedinthischapterareavailableintheNiosIIcommandshell.Formostofthecommands,youcanobtainhelpinthisshellbytyping--helprTostarttheNiosIIcommandshellonWindowsplatforms,ontheStartmenu,clickAllPrograms.OntheAllProgramsmenu,ontheAlterasubmenu,ontheNios
5、IIEDSsubmenu,clickNiosIICommandShell.OnLinuxplatforms,typethefollowingcommand:/nios2_command_shell.shrThecommandshellisaBourne-againshell(bash)withapre-configuredenvironment.AlteraCommand-LineToolsforBoardBringupandDiagnosti
6、csThissectiondescribesAlteracommand-linetoolsusefulforNiosdevelopmentboardbringupanddebugging.jtagconfigThiscommandreturnsinformationaboutthedevicesconnectedtoyourhostPCthroughtheJTAGinterface,foryouruseindebuggingorprogramming.Usethiscommandtodetermineifyouconfig
7、uredyourFPGAcorrectly.ManyoftheothercommandsdependonsuccessfulJTAGconnection.Ifyouareunabletouseothercommands,checkwhetheryourJTAGchaindiffersfromthesimple,single-devicechainusedasanexampleinthischapter.©2011AlteraCorporation.Allrightsreserved.ALTERA,ARRIA,CYCLONE
8、,HARDCOPY,MAX,MEGACORE,NIOS,QUARTUSandSTRATIXareReg.U.S.Pat.&Tm.Off.and/ortrademarksofAlteraCorporationintheU.S.andothercountries.Allothertrademarksands