Professional Documents
Culture Documents
Keil20ide20tutorial 120730000246 Phpapp01
Keil20ide20tutorial 120730000246 Phpapp01
Keil20ide20tutorial 120730000246 Phpapp01
uVision ID DE (Integrated Develop pment Envir ronment) allows develo opers to crea ate embedde ed applicatio ons using the Keil development too ols. It integra ates a projec ct manager (to create a and maintain projects), , make utilit ty (for assem mbling, com mpiling, and linking emb bedded applications), s source code vironment. editor, de ebugger and d simulator into one env
KeilSoftw wareDevelop pmentCycle Theprojectdevelopme entcycleissimilartoanyother o softwar redevelopme entproject. mtheDeviceD Database,and dconfigureth hetoolssettings 1.Createaproject,selectthetargetdevicefrom nC 2.Createsourcefilesin pplicationwit thProjectMa anager 3.Buildap 4.Debugandcorrecterrors e insourc cefiles,verify yandoptimiz zeapplication n 5.Downlo oadcodetoFlashROMorSRAMandte estthelinked application
es Procedure 1. CreateDirecto ory 2. CreateNewPr roject 1. LaunchKeiluVisionIDEbyclickingontheiconon nyourdesktoporbyselect tingitfromth he StartMenu u. Createaworki ingdirectory, ,suchasC:\SITEProgram\ \UVProject,t tosaveallyou urwork. Th hisdirectorywillincludethefollowingfiles: f *.uvpr rojthemain nprojectfileto t managealllfilesassociatedwithcurr rentproject *.cCcode;aninp puttotheuVisionIDEprog gram *.hexcontainsma achinecode;anoutputfro omuVisionID DEprogramth hatisdownlo oaded tothemicroprocessorboard
3. CreateSourceFiles Sourcefilesare 1. Tocreateanewsourcecode,usethebuttonontheFileToolbarorclickonFileinthe menubarandselectNew.ThisactionopensanemptyEditorWindowtoenteryour sourcecode. 2. TypeinyourClanguagecode.(Note:SeeCProgramming) 3. SavethenewsourcefileusingthebuttonontheFileToolbarorclickonFileinthemenu barandselectSave. 4. AddSourceFiles 1. IntheProjectWindow(ontheleft),expandtheTarget1folder.RightclickontheSource Group1folder,thenchooseAddFilestoGroupSourceGroup1.
2. Selectthesourcefile(.cfile)youjustcreatedandsaved.ClickAddandthenClose.
2. OntheOutputTab,checktheoptiontoCreateHEXFile.ClickOK.
3. ClickonProjectfromthemenubarandselectBuildTargetorRebuildalltargetfiles.A BuildOutputwindowwillshowthesourcecodegettingcompiledintoaHEXfile.
4. OntheTargettab,checkUseMicroLIB.
1. ClickonFlashfromthemenubarandselectDownload.Waittillthedownloading processisfinished.